-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtual_server.conf
More file actions
56 lines (49 loc) · 1.32 KB
/
virtual_server.conf
File metadata and controls
56 lines (49 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
ServerTokens Prod
ServerSignature Off
TraceEnable off
UseCanonicalName Off
HostnameLookups Off
Header unset X-Powered-By
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
ServerName localhost
Listen 0.0.0.0:80
Listen 0.0.0.0:443
User apache
Group apache
ServerAdmin you@example.com
ServerSignature On
ErrorLog /var/log/apache2/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/apache2/access.log combined
LoadModule ssl_module modules/mod_ssl.so
<VirtualHost *:80>
DocumentRoot /var/www/carsinet
DirectoryIndex index.php
<Directory /var/www/carsinet/>
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/carsinet
<Directory /var/www/carsinet/>
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/carsinet.cer
SSLCertificateKeyFile /etc/ssl/carsinet.key
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>