Difference between revisions of "Apache2 confguration"

From Teknologisk videncenter
Jump to: navigation, search
m (added Category:UNIX using HotCat)
m (HTTPS default setup)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Checking configuration=
+
=Apache version 2.2=
To check the syntax of the configuration files use '''apachectl''<ref>[http://httpd.apache.org/docs/2.0/configuring.html#page-header Apache 2 documentation: Configuration files]</ref>
+
Apache version 2.2<ref>[http://httpd.apache.org/docs/2.2/ Apache 2.2 Documentation]</ref>
 +
==Checking configuration==
 +
To check the syntax of the configuration files use '''apachectl''<ref>[http://httpd.apache.org/docs/2.2/configuring.html Apache 2 documentation: Configuration files]</ref>
 
<source lang=cli>
 
<source lang=cli>
 
heth@mars:/etc/apache2$ <input>apachectl configtest</input>
 
heth@mars:/etc/apache2$ <input>apachectl configtest</input>
Line 8: Line 10:
 
{{Source cli}}
 
{{Source cli}}
 
=Links=
 
=Links=
 +
*[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>
 +
*[https://wiki.apache.org/httpd/RedirectSSL Redirect HTTP to HTTP's example]
 +
=Apache Virtual Hosts=
 +
*[https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts DigitalOcean on Apache Virtual Hosts] (Ubuntu 14.04 LTS)
 +
{{source cli}}
 +
 
=References=
 
=References=
 
<references/>
 
<references/>

Latest revision as of 07:29, 28 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 OK

Links

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

Apache Virtual Hosts


References