httpd.conf configuration

Reply

Join Date: Mar 2006
Posts: 4
Reputation: hayunna is an unknown quantity at this point 
Solved Threads: 0
hayunna hayunna is offline Offline
Newbie Poster

httpd.conf configuration

 
0
  #1
Aug 23rd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 28
Reputation: atlex2 is an unknown quantity at this point 
Solved Threads: 3
atlex2 atlex2 is offline Offline
Light Poster

Re: httpd.conf configuration

 
0
  #2
Jul 7th, 2008
The problem is you don't propagate the host name changes across your computers. You'd need a local dns for that. Or you could just edit the hosts file. I'm guessing that you can access it by typing the ip in?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 40
Reputation: williebens is an unknown quantity at this point 
Solved Threads: 0
williebens williebens is offline Offline
Light Poster

Re: httpd.conf configuration

 
0
  #3
Jul 15th, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum


Views: 4875 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Linux Servers and Apache
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC