iandouglas736
Verified User
- Joined
- Nov 12, 2007
- Messages
- 8
Hey all,
I'm running DA 1.31.1 with Apache2, and DA is having issues with the standard httpd.conf it generates for each user.
Things like:
ServerName www.mydomain.com
ServerAlias www.mydomain.com mydomain.com
... the www.mydoain.com in the Alias line is redundant -- the point of an alias name is give *alternate* names.
Things like:
User myusername
Group mygroupname
Should be:
SuexecUserGroup myusername mygroupname
The current software also writes a block of code with various PHP commands which Apache complains about.
So instead of writing a Perl script to launch and rebuild all of my httpd.conf files, is it possible to have a template of my own to use?
Perhaps for a later version of the DA software, allow us to write a template like:
<VirtualHost *:80>
ServerName www.$domain
ServerAlias $domain
ServerAdmin webmaster@$domain
DocumentRoot /home/$username/domains/$domain/public_html
ScriptAlias /cgi-bin/ /home/$username/domains/$domain/public_html/cgi-bin/
UseCanonicalName OFF
SuexecUserGroup $username $groupname
CustomLog /var/log/httpd/domains/$domain.bytes bytes
CustomLog /var/log/httpd/domains/$domain.log combined
ErrorLog /var/log/httpd/domains/$domain.error.log
<Directory /home/$username/domains/$domain/public_html>
Options +Includes Indexes
AllowOverride All
</Directory>
</VirtualHost>
I also noticed a few extra things, like how the default is -Indexes, which turns OFF checking for index.html or index.php or whatnot -- why is that? Also, without an AllowOverride statement, .htaccess files cannot be used, which is vital for password-protected directories. Was this an oversight?
I'm running DA 1.31.1 with Apache2, and DA is having issues with the standard httpd.conf it generates for each user.
Things like:
ServerName www.mydomain.com
ServerAlias www.mydomain.com mydomain.com
... the www.mydoain.com in the Alias line is redundant -- the point of an alias name is give *alternate* names.
Things like:
User myusername
Group mygroupname
Should be:
SuexecUserGroup myusername mygroupname
The current software also writes a block of code with various PHP commands which Apache complains about.
So instead of writing a Perl script to launch and rebuild all of my httpd.conf files, is it possible to have a template of my own to use?
Perhaps for a later version of the DA software, allow us to write a template like:
<VirtualHost *:80>
ServerName www.$domain
ServerAlias $domain
ServerAdmin webmaster@$domain
DocumentRoot /home/$username/domains/$domain/public_html
ScriptAlias /cgi-bin/ /home/$username/domains/$domain/public_html/cgi-bin/
UseCanonicalName OFF
SuexecUserGroup $username $groupname
CustomLog /var/log/httpd/domains/$domain.bytes bytes
CustomLog /var/log/httpd/domains/$domain.log combined
ErrorLog /var/log/httpd/domains/$domain.error.log
<Directory /home/$username/domains/$domain/public_html>
Options +Includes Indexes
AllowOverride All
</Directory>
</VirtualHost>
I also noticed a few extra things, like how the default is -Indexes, which turns OFF checking for index.html or index.php or whatnot -- why is that? Also, without an AllowOverride statement, .htaccess files cannot be used, which is vital for password-protected directories. Was this an oversight?