Doc
This commit is contained in:
parent
7b546b4140
commit
6f978383cd
@ -12,6 +12,7 @@
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
|
# The URLs of the web site
|
||||||
ServerName myvirtualalias
|
ServerName myvirtualalias
|
||||||
ServerAlias myvirtualalias
|
ServerAlias myvirtualalias
|
||||||
|
|
||||||
@ -23,8 +24,13 @@
|
|||||||
|
|
||||||
AddDefaultCharset UTF-8
|
AddDefaultCharset UTF-8
|
||||||
|
|
||||||
DocumentRoot "/home/.../htdocs"
|
|
||||||
|
|
||||||
|
# Detect if we are using DoliDroid
|
||||||
|
#SetEnvIf User-Agent DoliDroid dolidroid
|
||||||
|
|
||||||
|
|
||||||
|
# The directory and permissions for the web site
|
||||||
|
DocumentRoot "/home/.../htdocs"
|
||||||
<Directory /home/.../htdocs/>
|
<Directory /home/.../htdocs/>
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Options -Indexes -MultiViews +FollowSymLinks -ExecCGI
|
Options -Indexes -MultiViews +FollowSymLinks -ExecCGI
|
||||||
@ -40,39 +46,43 @@
|
|||||||
# Leaving /public and /api, /dav, .well_known but also wrappers for document, viewimage and public json/img accessible to everyone
|
# Leaving /public and /api, /dav, .well_known but also wrappers for document, viewimage and public json/img accessible to everyone
|
||||||
<Directory /home/admin/wwwroot/dolibarr/htdocs/public/>
|
<Directory /home/admin/wwwroot/dolibarr/htdocs/public/>
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
|
||||||
Satisfy any
|
Satisfy any
|
||||||
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory /home/admin/wwwroot/dolibarr/htdocs/api/>
|
<Directory /home/admin/wwwroot/dolibarr/htdocs/api/>
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
|
||||||
Satisfy any
|
Satisfy any
|
||||||
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory /home/admin/wwwroot/dolibarr/htdocs/dav/>
|
<Directory /home/admin/wwwroot/dolibarr/htdocs/dav/>
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
|
||||||
Satisfy any
|
Satisfy any
|
||||||
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Directory /home/admin/wwwroot/dolibarr/htdocs/.well-known/>
|
<Directory /home/admin/wwwroot/dolibarr/htdocs/.well-known/>
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
|
||||||
Satisfy any
|
Satisfy any
|
||||||
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
<Files ~ "(document\.php|viewimage\.php|\.js\.php|\.json\.php|\.js|\.css\.php|\.css|\.gif|\.png|\.svg|\.woff2|favicon\.ico)$">
|
<Files ~ "(document\.php|viewimage\.php|\.js\.php|\.json\.php|\.js|\.css\.php|\.css|\.gif|\.png|\.svg|\.woff2|favicon\.ico)$">
|
||||||
AuthType None
|
AuthType None
|
||||||
Require all granted
|
|
||||||
Satisfy any
|
Satisfy any
|
||||||
|
Require all granted
|
||||||
</Files>
|
</Files>
|
||||||
|
|
||||||
|
|
||||||
|
# Log directoves
|
||||||
ErrorLog /var/log/apache2/myvirtualalias_error_log
|
ErrorLog /var/log/apache2/myvirtualalias_error_log
|
||||||
TransferLog /var/log/apache2/myvirtualalias_access_log
|
TransferLog /var/log/apache2/myvirtualalias_access_log
|
||||||
|
|
||||||
# Compress returned resources of type php pages, text file export, css and javascript
|
|
||||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
|
|
||||||
|
|
||||||
|
# Compress is done on resources of type php pages, text file export, css and javascript
|
||||||
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
|
||||||
AddType text/javascript .jgz
|
AddType text/javascript .jgz
|
||||||
AddEncoding gzip .jgz
|
AddEncoding gzip .jgz
|
||||||
|
|
||||||
|
|
||||||
|
# Add cach performance directives
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresByType image/x-icon A2592000
|
ExpiresByType image/x-icon A2592000
|
||||||
ExpiresByType image/gif A2592000
|
ExpiresByType image/gif A2592000
|
||||||
@ -83,19 +93,20 @@
|
|||||||
ExpiresByType application/x-javascript A2592000
|
ExpiresByType application/x-javascript A2592000
|
||||||
ExpiresByType application/javascript A2592000
|
ExpiresByType application/javascript A2592000
|
||||||
|
|
||||||
SSLEngine On
|
|
||||||
|
|
||||||
# A self-signed (snakeoil) certificate can be created by installing
|
# To enable the SSL if the certificate file exists
|
||||||
# the ssl-cert package. See
|
<IfFile "/etc/letsencrypt/live/www.mydomain.com/cert.pem">
|
||||||
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
|
SSLEngine On
|
||||||
# If both key and certificate are stored in the same file, only the
|
|
||||||
# SSLCertificateFile directive is needed.
|
|
||||||
#SSLCertificateFile /etc/letsencrypt/live/www.mydomain.com/cert.pem
|
|
||||||
#SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomain.com/privkey.pem
|
|
||||||
#SSLCertificateChainFile /etc/letsencrypt/live/www.mydomain.com/chain.pem
|
|
||||||
|
|
||||||
#RewriteEngine on
|
# If both key and certificate are stored in the same file, only the
|
||||||
#RewriteCond %{SERVER_PORT} ^80$
|
# SSLCertificateFile directive is needed.
|
||||||
#RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
|
SSLCertificateFile /etc/letsencrypt/live/www.mydomain.com/cert.pem
|
||||||
|
SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomain.com/privkey.pem
|
||||||
|
SSLCertificateChainFile /etc/letsencrypt/live/www.mydomain.com/chain.pem
|
||||||
|
|
||||||
|
#RewriteEngine on
|
||||||
|
#RewriteCond %{SERVER_PORT} ^80$
|
||||||
|
#RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
|
||||||
|
</IfFile>
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user