Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Web Development Languages (http://www.programmingforums.org/forum40.html)
-   -   Apache Virtual Hosts (http://www.programmingforums.org/showthread.php?t=5464)

bobfox Aug 19th, 2005 9:43 AM

Apache Virtual Hosts
 
hi again.

I am running apache on fedora core 3. i would like to know how to create a virtual server.

currently it is:

http://myserver.com

i want the above to work, as well as:

http://site2.myserver.com

etc.

any ideas?

skuinders Aug 19th, 2005 9:45 AM

http://httpd.apache.org/docs/2.0/vhosts/name-based.html

bobfox Aug 19th, 2005 10:40 AM

I looked at that howto... but I'm getting lost somewhere... I have made these changes to httpd.conf and restarted httpd afterwards, but still no go.

:

NameVirtualHost 1.20.30.40:88
                                                                               
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                               
<VirtualHost 1.20.30.40:88>
ServerName site1.mysite.net
DocumentRoot /var/www/html/site1
ServerAdmin me@gmail.com
</VirtualHost>


any ideas?

iignotus Aug 30th, 2005 8:54 PM

With that configuration, your local subnet (maybe? lol) has to be accessed through 1.20.30.40 (which is incorrect, I'm sure). It's probably 127.0.01. Also, that subnet can only be accessed through port :88. To get to that site, I believe you'd have to type in http://site1.mysite.net:88/

Infinite Recursion Aug 30th, 2005 11:05 PM

Changing port 88 to 80 would probably work out for you.


All times are GMT -5. The time now is 2:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC