| | |
httpd.conf configuration
![]() |
•
•
Join Date: Mar 2006
Posts: 4
Reputation:
Solved Threads: 0
dear colleagues,
i am using linux cetos 5 and not really an expert understanding some linux configurations. ph5, mysql5, apache2 have been installed yesterday and now i am about to do some testing for my websites.
what i would just like to achieve is to do "Virtual HTTP Server" (port 80)browsing, meaning i'll just set to the router the IP address of my linux machine (e.g. 192.168.102.10) and then access it to another computer by simply typing http://192.168.102.10 to the browser to view my webpage. i am able to do this in a windows xp machine but not in linux. i've searched the web about this problem, and here's what i have done so far:
- i edited httpd.conf file and added the following lines at the bottom:
NameVirtualHost 192.168.102.10
<VirtualHost 192.168.102.10>
DocumentRoot /var/www/virtual/mywebfolder
ServerName test
</VirtualHost>
- saved httpd.conf file then restarted apache
i also tried httpd -S and it's telling me syntax OK and doesn't give me an error. i really had a hard time finding what's the problem. i would really appreciate any help that you could give.
thanks in advance.
regards,
- hayunna
i am using linux cetos 5 and not really an expert understanding some linux configurations. ph5, mysql5, apache2 have been installed yesterday and now i am about to do some testing for my websites.
what i would just like to achieve is to do "Virtual HTTP Server" (port 80)browsing, meaning i'll just set to the router the IP address of my linux machine (e.g. 192.168.102.10) and then access it to another computer by simply typing http://192.168.102.10 to the browser to view my webpage. i am able to do this in a windows xp machine but not in linux. i've searched the web about this problem, and here's what i have done so far:
- i edited httpd.conf file and added the following lines at the bottom:
NameVirtualHost 192.168.102.10
<VirtualHost 192.168.102.10>
DocumentRoot /var/www/virtual/mywebfolder
ServerName test
</VirtualHost>
- saved httpd.conf file then restarted apache
i also tried httpd -S and it's telling me syntax OK and doesn't give me an error. i really had a hard time finding what's the problem. i would really appreciate any help that you could give.
thanks in advance.
regards,
- hayunna
•
•
Join Date: Jan 2008
Posts: 40
Reputation:
Solved Threads: 0
Hello there:
I am not really clear on what you want. So let me ask, do you want to run the web server on a linux host, 192.168.102.10, and then access the web page from another computer?
I am assuming that both computers are on the same network since 192.168.102.10 is a private IP. Another thing, instead of having it as ServerName test, I would suggest you change it to:
ServerName www.test.com
and as well add a line like this:
ServerAlias *.test.com *test.com
Thanks.
--Willie
I am not really clear on what you want. So let me ask, do you want to run the web server on a linux host, 192.168.102.10, and then access the web page from another computer?
I am assuming that both computers are on the same network since 192.168.102.10 is a private IP. Another thing, instead of having it as ServerName test, I would suggest you change it to:
ServerName www.test.com
and as well add a line like this:
ServerAlias *.test.com *test.com
Thanks.
--Willie
![]() |
Similar Threads
- php5 and phpmyadmin?? (PHP)
- help hosting website from home. (Domains and DNS)
- PHP Tripod (PHP)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Apache redirection? (Linux Servers and Apache)
- php phpmyadmin problem ?? (PHP)
- Pray for help on mod_rewrite rule (Linux Servers and Apache)
- Virtual Hosting Multiple Websites (Linux Servers and Apache)
- .htaccess not working.! (Linux Servers and Apache)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Azingo drives LiMo into Mobile Linux playground
- Next Thread: The Netbook Market Booms with Linux Onboard
Views: 4875 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Linux Servers and Apache
.net amazon apache bbc bluegene centos cisco citrix cloud cloudcomputing code datacenters debian dell desktops development distributions distros economy eeepc energy enterprise fedora fsf gadgets gentoo gnu government gpl hardware hp hyper-v ibm jobs kindle knoppix kundra kvm laptop laptops lawsuits ldap limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print redhat rhel robot russia sco server servers slackware software solaris source stallman sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





