no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:linux:apache_old_config [2020/01/27 12:27] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Apache Configuration (Ubuntu 12.04 Precise Pangolin) ====== | ||
+ | Apache configuration for Ubuntu are at / | ||
+ | ===== httpd.conf ===== | ||
+ | file is an empty file by default. | ||
+ | < | ||
+ | ServerName xxxxxx | ||
+ | ExtendedStatus On | ||
+ | </ | ||
+ | In Saucy and later use this as it does not seem to come with a default config | ||
+ | < | ||
+ | echo " | ||
+ | echo " | ||
+ | ln -s / | ||
+ | </ | ||
+ | |||
+ | ===== Enabling standard modules ===== | ||
+ | Enable the following mods | ||
+ | < | ||
+ | a2enmod actions | ||
+ | a2enmod alias | ||
+ | a2enmod auth_basic | ||
+ | a2enmod authn_file | ||
+ | a2enmod authz_default | ||
+ | a2enmod authz_groupfile | ||
+ | a2enmod authz_host | ||
+ | a2enmod authz_svn | ||
+ | a2enmod authz_user | ||
+ | a2enmod autoindex | ||
+ | a2enmod cgi | ||
+ | a2enmod dav_fs | ||
+ | a2enmod dav | ||
+ | a2enmod dav_lock | ||
+ | a2enmod dav_svn | ||
+ | a2enmod deflate | ||
+ | a2enmod dir | ||
+ | a2enmod env | ||
+ | a2enmod headers | ||
+ | a2enmod info | ||
+ | a2enmod mime | ||
+ | a2enmod negotiation | ||
+ | a2enmod php5 | ||
+ | a2enmod proxy_connect | ||
+ | a2enmod proxy_ftp | ||
+ | a2enmod proxy_http | ||
+ | a2enmod proxy | ||
+ | a2enmod reqtimeout | ||
+ | a2enmod rewrite | ||
+ | a2enmod setenvif | ||
+ | a2enmod ssl | ||
+ | a2enmod status | ||
+ | </ | ||
+ | |||
+ | Restart apache using | ||
+ | < | ||
+ | service apache2 restart | ||
+ | </ | ||
+ | |||
+ | ===== default-ssl ===== | ||
+ | At / | ||
+ | |||
+ | Change | ||
+ | < | ||
+ | To | ||
+ | < | ||
+ | |||
+ | ===== ports.conf (this may not be required anymore) ===== | ||
+ | ==== Change for 443 ==== | ||
+ | Include line | ||
+ | |||
+ | **NameVirtualHost *: | ||
+ | |||
+ | before | ||
+ | |||
+ | **Listen 443** | ||
+ | |||
+ | |||
+ | ==== Change for 80 ==== | ||
+ | Include line | ||
+ | |||
+ | **NameVirtualHost *:80** | ||
+ | |||
+ | before | ||
+ | |||
+ | **Listen 80** | ||
+ | |||
+ | ===== Enable SSL Website ===== | ||
+ | SSL website may be disabled by default | ||
+ | < | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===== Web directory (optional) ===== | ||
+ | Moving away from the default the designated web directory will be /www. | ||
+ | |||
+ | Hence do a < |