###################### # File : vhost_ABCD_9090_Windows.conf # Description : Example file to define a virtual host for ABCD on Windows # Syntax for Apache 2.4 See http://httpd.apache.org/docs/2.4/vhosts # Uses name based virtual host # Activation : Add a line in file .../conf/httpd.conf with content # Include conf/extra/vhost_ABCD_9090_Windows.conf # Prerequisite : Check modules in conf/httpd.conf: # To enable symlinks # LoadModule rewrite_module modules/mod_rewrite.so # Test : Command line : "httpd -S" shows possible errors ###################### Define ABCD_PORT 9090 Listen ${ABCD_PORT} ServerName abcd.eds.info ServerAdmin webmaster@localhost DirectoryIndex index.html index.php index.htm ##SSLEngine on ##SSLCertificateFile "conf/sslcrt/mysite.crt" ##SSLCertificateKeyFile "conf/sslkey/mysite.key" # The path to top for easy relocation Define ABCD_ROOT "/ABCD/www" DocumentRoot ${ABCD_ROOT}/htdocs Options +Indexes -FollowSymLinks AllowOverride All Require all granted Options +Indexes -FollowSymLinks +MultiViews Require all granted ScriptAlias /cgi-bin/ "${ABCD_ROOT}/cgi-bin/" AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AddHandler cgi-script .cgi AddHandler cgi-script .exe Require all granted Alias /docs/ "${ABCD_ROOT}/bases/" Options -Indexes -FollowSymLinks +MultiViews AllowOverride None Require all granted # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn # Log only for this virtual host. # If the filenames do *not* begin with "/", the value of ServerRoot is prepended # - keyword "combined" is defined in httpd.conf # - Portnumber in log file names CustomLog ${ABCD_ROOT}/logs/access_${ABCD_PORT}.log combined ErrorLog ${ABCD_ROOT}/logs/error_${ABCD_PORT}.log # default log # CustomLog ${APACHE_LOG_DIR}/access.log combined # ErrorLog ${APACHE_LOG_DIR}/error.log # PHP flags work if php is installed # reporting -1 = E_ALL php_flag log_errors on php_flag display_errors on php_value error_reporting -1 php_value error_log ${ABCD_ROOT}/logs/php_error_${ABCD_PORT}.log php_value max_input_vars 2000