Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by jmcg: http://wiki.apache.org/httpd/BasicConfigExample The comment on the change is: Got rid of tabs ------------------------------------------------------------------------------ ## ## Load/Configure PHP support for all Directories. ## - LoadModule php5_module modules/mod_php5.so + LoadModule php5_module modules/mod_php5.so AddHandler application/x-httpd-php php DirectoryIndex index.php index.html ## ## Basic SSL Setup ## - LoadModule ssl_module modules/mod_ssl.so + LoadModule ssl_module modules/mod_ssl.so SSLPassPhraseDialog builtin AcceptMutex flock SSLSessionCache shmcb:/var/cache/httpd/mod_ssl/ssl_scache(512000) @@ -69, +69 @@ ## ## CGI Support ## - LoadModule cgi_module modules/mod_cgi.so + LoadModule cgi_module modules/mod_cgi.so ## ## Protect the / Directory (so you don't accidentally serve up your whole filesystem. @@ -86, +86 @@ ## viewed by Web clients. ## <FilesMatch "^\.ht"> - Order allow,deny + Order allow,deny - Deny from all + Deny from all </FilesMatch> ## @@ -146, +146 @@ AllowOverride FileInfo Options +Indexes - ## + ## - ## Create /etc/httpd/conf/htpasswd with the following: + ## Create /etc/httpd/conf/htpasswd with the following: - ## # /usr/sbin/htpasswd -c /etc/httpd/conf/htpasswd <username> + ## # /usr/sbin/htpasswd -c /etc/httpd/conf/htpasswd <username> - ## Remove the -c option to add extra users to it. + ## Remove the -c option to add extra users to it. - ## + ## AuthBasicAuthoritative On AuthType Basic AuthName "Login" @@ -197, +197 @@ SSLCertificateFile /etc/ssl/ssl.example.com.crt SSLCertificateKeyFile /etc/ssl/ssl.example.com.key - SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 + SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 <Files ~ "\.(cgi|shtml|phtml|php?)$"> SSLOptions +StdEnvVars
