-
Notifications
You must be signed in to change notification settings - Fork 31
/
httpd.conf
94 lines (71 loc) · 2.51 KB
/
httpd.conf
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
ServerRoot "/etc/httpd"
PidFile "/etc/httpd/run/httpd.pid"
Listen 8082
LoadModule authz_core_module /etc/httpd/modules/mod_authz_core.so
LoadModule dir_module /etc/httpd/modules/mod_dir.so
LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
LoadModule logio_module /etc/httpd/modules/mod_logio.so
LoadModule mime_module /etc/httpd/modules/mod_mime.so
LoadModule mpm_worker_module /etc/httpd/modules/mod_mpm_worker.so
LoadModule rewrite_module /etc/httpd/modules/mod_rewrite.so
LoadModule setenvif_module /etc/httpd/modules/mod_setenvif.so
LoadModule unixd_module /etc/httpd/modules/mod_unixd.so
LoadModule proxy_module /etc/httpd/modules/mod_proxy.so
LoadModule proxy_fcgi_module /etc/httpd/modules/mod_proxy_fcgi.so
LoadModule ssl_module /etc/httpd/modules/mod_ssl.so
ServerName https://localhost:8082
# SSL settings - uncomment lines 24-29 to use certificates and SSL
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/synchweb/cert.pem
SSLCertificateKeyFile /etc/pki/tls/private/synchweb/key.pem
SSLProtocol -ALL +TLSv1 +TLSv1.1 +TLSv1.2
SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:!RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM;
SSLHonorCipherOrder on
<Directory />
AllowOverride None
Require all denied
</Directory>
DocumentRoot "/app/SynchWeb"
<Directory "/app/SynchWeb">
Options FollowSymLinks
AllowOverride None
Require all granted
RewriteEngine On
RewriteRule ^(.*)$ /client/$1 [L]
</Directory>
<Directory "/app/SynchWeb/api">
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
</Directory>
<Directory "/app/SynchWeb/client">
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.php [L]
</Directory>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error.log"
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
CustomLog "logs/access.log" combinedio
TypesConfig /etc/mime.types
AddDefaultCharset UTF-8
AddType text/html .php
<Proxy "fcgi://localhost:9000/">
ProxySet disablereuse=off
</Proxy>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://localhost:9000"
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
</FilesMatch>
# Resolves error for not being able to set permissions on rewrite-mutex
<IfModule unixd_module>
User daemon
Group daemon
</IfModule>