Jos*_*one 36 proxy mod-proxy proxypass apache-2.2
我正在尝试让 ProxyPass 在我的 OpenSUSE 13.1 安装上工作。
我试过了:
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_connect
systemctl restart apache2
systemctl reload apache2
Run Code Online (Sandbox Code Playgroud)
(所有组合语句都无济于事)。
我一遍又一遍地得到同样的错误:
SERVER:/etc/apache2 # apache2ctl start -f /etc/apache2/httpd-proxy.conf
AH00526: Syntax error on line 4 of /etc/apache2/httpd-proxy.conf:
Invalid command 'ProxyPass', perhaps misspelled or defined by a module not included in the server configuration
Run Code Online (Sandbox Code Playgroud)
httpd-proxy.conf 看起来像:
<VirtualHost *:80>
DocumentRoot /srv/www/subsite
ServerName www.site.com/subsite
ProxyPass /subsite/ http://localhost:81
ProxyPassReverse /subsite/ http://localhost:81
</Virtualhost>
Run Code Online (Sandbox Code Playgroud)
有谁知道如何让这个 ProxyPass 语句起作用?
ale*_*xus 39
看起来proxy_http_module没有加载,请确保您在以下内容中有以下内容httpd.conf:
LoadModule proxy_http_module modules/mod_proxy_http.so
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
71161 次 |
| 最近记录: |