Results 11 to 12 of 12
how about this
Code:
NameVirtualHost *:80
you reference the name in each of the other virtual host containers as *:80, I believe it should match the name based virtual host ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-12-2009 #11
how about this
you reference the name in each of the other virtual host containers as *:80, I believe it should match the name based virtual host directive.Code:NameVirtualHost *:80
I believe you would then change your <virtual host *> lines to <virtual host *:80> to match the namebased......
oh wait, are you using apache 1.3 or 2.X?
in 1.3 its NameVirtualhost, in 2.X its NameBasedVirtualHost
name based virtual hosting - Google Search
first link is for 1.3 and second is for 2.X
if you posted the version already, my bad.
- 03-12-2009 #12
Dan,
Try something like this
This is one of the virtual hosts from my development machine. I am running several sites on that machine and the only difference between the files is the paths to the sites and the server name which is the url.Code:NameVirtualHost 192.168.0.25 <VirtualHost 192.168.0.25> ServerAdmin webmaster@localhost ServerName xfc DocumentRoot /home/elija/sites/xfc/public-html/ <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /home/elija/sites/xfc/logs/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /home/elija/sites/xfc/logs/access.log combined ServerSignature On </VirtualHost>
Replace the IP Addresses with the IP Address of your server.
Hope this helps.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn


Reply With Quote
