Apache2 Host Issue
Hi all. I have a weird issue here.. I'm trying to make my apache respond only to a certain domain name, rather than any name that will resolve to my ip... I have about 4 domain names that point to my ip, but I only want this server to respond to only one domain. Whenever I try to use
Code:
NameVirtualHost * Code:
NameVirtualHost foo.bar Quote:
|
File does not exist: /htdocs
this indicates that the virtual server does not have a DocumentRoot so it looks for files in /htdocs |
Ah sorry.. I should've given more of the config.. Here's the whole file. I basically just took the default file...
Code:
NameVirtualHost * |
DocumentRoot "/var/www"
the quotes maybe...then restart server <Directory "/var/www"> |
Same effect.. Strange that this is happening. Is there a way to get more info from the error logs? It still is looking for /htdocs and when I
Code:
/etc/apache2#> grep -r "htdocs"* * |
Anybody else have an idea I should try? For the record I'm runnig this on Debian Etch.
|
Quote:
Code:
ps -ef|grep http |
Code:
root 21822 1 0 Nov12 ? 00:00:00 /root/ispconfig/httpd/bin/ispconfig_httpd -DSSL |
Just for more clarification, here is my setup.
One system: Apache ISPConfig (which has apache) Mysql etc... Chroot system: Apache PostgreSQL The reason why I've chroot'd an apache install is because I didn't want PSQL and MySQL to know about eachother... I wasn't sure if I could access the chroot'd PSQL server with the unchroot'd Apache... |
I guess that the 2 servers are listening on different ports, or different IPs. Anyway if you're running apache chrooted, then the config files are under /chroot-dir/etc/apache2, so you should check there to find what the DocumentRoot is.
Regards |
Yeah that's what I'm editing. They're all running on different ports.
|
All times are GMT -5. The time now is 08:49 PM. |