lamp virtual servers
Running Ubuntu 8.10 with LAMP
Lamp works fine, as does phpmyadmin. Tried various ways/tutorials to get 3 virtual name servers working, but kept getting errors:
NameVirtualHost *:80 has no VirtualHosts
[error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
As well as 500 errors.
I have a dir I'm using as the root, then in there three folders for each virtual server. I had it close once, where two of the folders were actually working as virtual servers, but the first one wasn't listed for some reason.
And that was without any serious errors on apache restart (it did still state there where no virtual namehosts)
Any links to good tutorials/advice?
greg posted this at 14:53 — 3rd March 2009.
He has: 1,581 posts
Joined: Nov 2005
Ahh, no matter . *slap*
It's working fine now
The .htaccess in the folder1 was messing it up. I had a password in there (as it was from the live server) and of course the path to the password dir doesn't exist on my PC.
*slap again*
interestingly, it still states there are no nameservers (?)
/etc/init.d/apache2 restart
* Restarting web server apache2
[warn] NameVirtualHost *:80 has no VirtualHosts
... waiting
[warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]
pr0gr4mm3r posted this at 15:14 — 3rd March 2009.
He has: 1,502 posts
Joined: Sep 2006
I think that means that there is no default virtual server. In other words, any domains you have setup would work ok, but if I tried to access your server by IP address, I would get an error message. This page may be able to help you out further.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.