I've recently decided that I'm sick of writing config files by hand, and I'm looking for a nice web based panel for me to manage my websites with.
At the moment, ISPconfig appears to be the most suitable for this task. But before i start using it, i would like to know more about it's inner workings.
I'm currently trying to decipher the contents of vhost.conf.master
I've setup a placeholder site "example.com" (with ssl enabled as well) and the config file (/etc/apache2/sites-enabled/example.com.vhost) came out like this
Code:
<VirtualHost *:80>
DocumentRoot /var/www/example.com/web
ServerName example.com
ServerAlias www.example.com www.example.com
ServerAdmin webmaster@example.com
ErrorLog /var/clients/client1/web1/log/error.log
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
<Directory /var/www/example.com/web>
Options FollowSymLinks Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@example.com"
php_admin_value upload_tmp_dir /var/clients/client1/web1/tmp
php_admin_value session.save_path /var/clients/client1/web1/tmp
#php_admin_value open_basedir /var/clients/client1/web1:/usr/share/php5
</VirtualHost>
<IfModule mod_ssl.c>
###########################################################
# SSL Vhost
###########################################################
<VirtualHost *:443>
DocumentRoot /var/clients/client1/web1/web
ServerName example.com
ServerAlias www.example.com www.example.com
ServerAdmin webmaster@example.com
ErrorLog /var/clients/client1/web1/log/error.log
SSLEngine on
SSLCertificateFile /var/clients/client1/web1/ssl/example.com.crt
SSLCertificateKeyFile /var/clients/client1/web1/ssl/example.com.key
# cgi enabled
ScriptAlias /cgi-bin/ /var/clients/client1/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@example.com"
php_admin_value upload_tmp_dir /var/clients/client1/web1/tmp
php_admin_value session.save_path /var/clients/client1/web1/tmp
#php_admin_value open_basedir /var/clients/client1/web1:/usr/share/php5
</VirtualHost>
</IfModule>
Could someone perhaps explain a bit more about all the possible config file outputs, because all the conditional <tmpl_if>....</tmpl_if> statements are very confusing to me.
Recent comments
2 days 9 hours ago
2 days 18 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 16 min ago
3 days 1 hour ago
3 days 3 hours ago
3 days 4 hours ago
3 days 20 hours ago
3 days 21 hours ago