Summary: | Permission denied on vhosts in apache2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steven Wagner <stevenwagner> |
Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | VERIFIED INVALID | ||
Severity: | normal | CC: | vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Steven Wagner
2003-11-04 21:03:04 UTC
no, do not change it to /var/www add additional directory defines for each subdir ... 1 directory define per vhost ... Or you can also add them under ../htdocs, as I previously had my domains under /home/httpd/htdocs/www/ I simply moved them to /var/www/localhost/htdocs/www/ You can still create specific directory rules for each domain, but you get the advantage of have the basic default in one place. GLEP 11 defines the Document Root location as /var/www/<fully qualified domain name>/ If there is a reason someone can show for doing this in the "1 directory define per vhost" way, then the vhost.conf template should be updated for the user so that the vhost example works. How is the vhost-config tool planning to manage this? for you default rules, consider using DirectoryMatch blocks instead of Directory blocks. the actual last field of /var/www/$FQDN/ will be customizable as to how it works, as single level splitting is a PITA when you have lots of vhosts. I personally use /var/www/$DOMAIN/$HOST/ as my htdocs directory for each vhost. Should this bug be closed? Please read the config files under /etc/apache2/conf/vhosts/ to see different ways to perform virtual hosting on a server. There is also plenty of very clear documentation on the Apache web site on which configuration directives to use. Although there's a lot we can do to improve our apache config files, what you're suggesting is not how Apache is meant to be configured. Closing bug. Best regards, Stu Closing. |