Apache2 - having trouble setting up multiple domains under debian etch
I know I am using apache2, but I'm not sure if it's 2.2 or whatever. How can I can find out?
I am trying to follow the instructions from this site: http://www.debian-administration.org/articles/412 But it does not work, apache will not even load. My /etc/apache2/conf.d/virtual.conf looks like this: Quote:
I did not create that file, but as long as I only have that file enabled, apache works. Although I get is that default "it works" message. I am not sure if I should use "site.com" for the site name, and "www.sitename.com" for the site alias, or the other way around. My domain files look like this: Quote:
Any glaring errors? |
I do hosting for a few dozen domains and I use this...
NameVirtualHost * Code:
<VirtualHost *> Don't forget to make a symlink between /sites-available and /sites-enabled, make sure the directories exist, make sure the dns is setup to point to this machine, and if that doesn't work include a copy of your system and site access/error logs (last 20 lines) in your reply. |
I still get a "Page Load Error" should this tell me anything?
/var/log/apache2/access.log Quote:
|
Using your script as a template, what happens now is: apache will reload, but I get "page load errors." Then if I try to reload apache again, apache will not reload. If I go back and a2dissite example.com, then apache will reload.
Quote:
|
All times are GMT -5. The time now is 06:58 AM. |