|
|
| 1-р мөр: |
1-р мөр: |
| | <p> | | <p> |
| − | Apache reverse proxy met OpenERP 6.1 | + | Apache reverse proxy |
| | </p> | | </p> |
| | | | |
| 7-р мөр: |
7-р мөр: |
| | </p> | | </p> |
| | | | |
| − | <p>
| |
| − | Eerst modules voor Apache activeren:
| |
| − | </p>
| |
| | <pre class="code">a2enmod ssl proxy_http headers rewrite </pre> | | <pre class="code">a2enmod ssl proxy_http headers rewrite </pre> |
| | | | |
| − | <p>
| + | [[https://wiki.dusal.net/Odoo_service_%D1%82%D0%BE%D1%85%D0%B8%D1%80%D1%83%D1%83%D0%BB%D0%B0%D1%85_(NGINX,_Apache,_LetsEncrypt_(acme.sh),_systemd)]] |
| − | /etc/apache2/sites-available/default:
| |
| − | </p>
| |
| − | <pre class="code"><VirtualHost *:80>
| |
| − | #ServerName webclient
| |
| − | ServerAdmin webmaster@localhost
| |
| − | | |
| − | <Proxy *>
| |
| − | Order deny,allow
| |
| − | Allow from all
| |
| − | </Proxy>
| |
| − | ProxyRequests Off
| |
| − | ProxyPass / http://127.0.0.1:8069/
| |
| − | ProxyPassReverse / http://127.0.0.1:8069/
| |
| − | | |
| − | # Fix IE problem (http error 408/409)
| |
| − | SetEnv proxy-nokeepalive 1
| |
| − | ErrorLog /var/log/apache2/webclient-error.log
| |
| − | CustomLog /var/log/apache2/webclient-access.log combined
| |
| − | </VirtualHost></pre>
| |
| − | | |
| − | <p>
| |
| − | Reload config:
| |
| − | </p>
| |
| − | <pre class="code">service apache2 restart</pre>
| |
| − | | |
| − | <p>
| |
| − | <abbr title="Secure Sockets Layer">SSL</abbr>:
| |
| − | </p>
| |
| − | | |
| − | <p>
| |
| − | /etc/apache2/sites-available/default:
| |
| − | </p>
| |
| − | <pre class="code"><VirtualHost *:80>
| |
| − | #ServerName webclient
| |
| − | ServerAdmin webmaster@localhost
| |
| − | Redirect / "https://mydomain/"
| |
| − | </VirtualHost></pre>
| |
| − | | |
| − | <p>
| |
| − | /etc/apache2/sites-available/default-ssl:
| |
| − | </p>
| |
| − | <pre class="code"><VirtualHost *:443>
| |
| − | #ServerName webclient
| |
| − | ServerAdmin webmaster@localhost
| |
| − | | |
| − | <Proxy *>
| |
| − | Order deny,allow
| |
| − | Allow from all
| |
| − | </Proxy>
| |
| − | ProxyRequests Off
| |
| − | ProxyPass / http://127.0.0.1:8069/
| |
| − | ProxyPassReverse / http://127.0.0.1:8069/
| |
| − | | |
| − | # Fix IE problem (http error 408/409)
| |
| − | SetEnv proxy-nokeepalive 1
| |
| − | RequestHeader set "X-Forwarded-Proto" "https"
| |
| − | | |
| − | ErrorLog /var/log/apache2/webclient-error.log
| |
| − | CustomLog /var/log/apache2/webclient-access.log combined
| |
| − | | |
| − | SSLEngine on
| |
| − | SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
| |
| − | SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
| |
| − | </VirtualHost></pre>
| |
| − | | |
| − | <p>
| |
| − | Reload config:
| |
| − | </p>
| |
| − | <pre class="code">a2ensite default-ssl
| |
| − | service apache2 restart</pre>[[Ангилал:Нээлттэй_эх]]
| |