0
A
回答
0
這是我目前的工作配置(使用Let's encrpyt SSL的Apache 2.4)。
Socket.io是主要的問題,終於讓我找到了一種方法,使工作(transport=polling
請求/socket.io
必須http
,所有其他請求/socket.io
必須的WebSocket)。
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName erpnext.example.com
DocumentRoot /home/frappe/frappe-bench/sites/erpnext.example.com/
ProxyPreserveHost On
ProxyRequests Off
ProxyTimeout 120
ProxyPass "/.well-known/" "!"
ProxyPass "/AutoDiscover/" "!"
ProxyPass "/mail/" "!"
ProxyPass "/cgi-bin/" "!"
ProxyPass "/assets/" "!"
ProxyPass "/files/" "!"
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=polling [NC]
RewriteRule /(.*) http://localhost:9000/socket.io/$1 [P,L]
RequestHeader set Host "erpnext.example.com"
RequestHeader set X-Frappe-Site-Name "erpnext.example.com"
ProxyPass "/socket.io" "ws://localhost:9000/socket.io/"
ProxyPassReverse "/socket.io" "ws://localhost:9000/socket.io/"
<Location "/socket.io">
RequestHeader set X-Frappe-Site-Name "erpnext.example.com"
</Location>
Alias "/assets" "/home/frappe/frappe-bench/sites/assets"
<Directory /home/frappe/frappe-bench/sites/assets>
Options FollowSymLinks
Require all granted
</Directory>
Alias "/files" "/home/frappe/frappe-bench/sites/erpnext.example.com/public/files"
<Directory /home/frappe/frappe-bench/sites/erpnext.example.com/public/files>
Options FollowSymLinks
Require all granted
</Directory>
ProxyPass "/" "http://localhost:8000/"
ProxyPassReverse "/" "http://localhost:8000/"
<Location "/">
RequestHeader set X-Frappe-Site-Name "erpnext.example.com"
</Location>
SSLCertificateFile /etc/letsencrypt/live/erpnext.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/erpnext.example.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
相關問題
- 1. 用erpnext安裝supervisord
- 2. 如何在Windows上安裝erpnext
- 3. 安裝ERPNext時卡住
- 4. 獲取上的cPanel的CentOS安裝erpnext
- 5. 如何安裝和使用Apache Velocity?
- 6. 使用Apache 2.2安裝mod_jk
- 7. 使用yum安裝Apache Spark
- 8. 如何安裝Apache模塊
- 9. 嘗試在現場安裝應用程序時出錯ERPNEXT
- 10. Apache安裝
- 11. 安裝Apache 2.2
- 12. 安裝Apache Cordova
- 13. 安裝Apache Maven
- 14. Apache Tomcat安裝
- 15. Apache安裝
- 16. 如何使用cabal安裝安裝haddock
- 17. 使用Apache Camel插件安裝Grails
- 18. 使用linux pc安裝Apache POI爲Android
- 19. 在Win7 PC上使用Apache安裝PHP5
- 20. 在Mac OSX上使用apache安裝postgresql
- 21. 使用Apache在Windows上安裝CakePHP
- 22. 使用Apache框架安裝/配置Hue
- 23. 使用xampp安裝Apache時出錯
- 24. 如何爲MAMP安裝的apache安裝mod_authz_core模塊?
- 25. 如何在apache hadoop上安裝cloudera 2.7.1
- 26. 如何在bluemix雲中安裝apache cassandra?
- 27. 如何在centOS上安裝Apache Tomcat
- 28. 如何在mac上安裝apache mahout?
- 29. 如何從Apache安裝HttpClient庫?
- 30. 如何在Windows 7上安裝Apache Ant
請訪問以下鏈接:https://stackoverflow.com/questions/22959287/installation-not-proceed-in-erpnext –
請訪問此鏈接:https://stackoverflow.com/questions/22959287/安裝 - 不進行功能於erpnext –