Difference between revisions of "Apache2 confguration"
From Teknologisk videncenter
m (→Links) |
m (→Links) |
||
| Line 11: | Line 11: | ||
=Links= | =Links= | ||
*[https://help.ubuntu.com/11.10/serverguide/httpd.html Ubuntu: HTTPD - Apache2 Web Server Configuration] | *[https://help.ubuntu.com/11.10/serverguide/httpd.html Ubuntu: HTTPD - Apache2 Web Server Configuration] | ||
| + | =HTTPS default setup= | ||
| + | Tilpas eventuelt /etc/apache2/sites-available/default-ssl.conf eller en anden conf fil | ||
| + | |||
| + | <source lang=cli> | ||
| + | a2enmod ssl | ||
| + | a2ensite default-ssl | ||
| + | service apache2 restart | ||
| + | </source> | ||
| + | {{source cli}} | ||
=References= | =References= | ||
Revision as of 13:26, 27 April 2016
Apache version 2.2
Apache version 2.2[1]
Checking configuration
To check the syntax of the configuration files use 'apachectl[2]
heth@mars:/etc/apache2$ <input>apachectl configtest</input>
[Fri May 04 06:40:28 2012] [warn] NameVirtualHost *:443 has no VirtualHosts
Syntax OKLinks
HTTPS default setup
Tilpas eventuelt /etc/apache2/sites-available/default-ssl.conf eller en anden conf fil
a2enmod ssl
a2ensite default-ssl
service apache2 restart