我已经在局域网中设置了基洛,它不能被外部网络访问。现在,我想做一个转发,使它可以从外部访问。如何设置ProxyPass和ProxyPassReverse?在
我之所以这么问是因为对于Kilo dashboard,登录装饰器将重定向http://host.ip/dashboard-->;http://host.ip/dashboard/auth/login/?next=/dashboard/。结果,通过转发的访问将失败。在
谁能帮上忙?在
p.S.(apache配置)
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName xxx.xxx.com
## Vhost docroot
DocumentRoot "/var/www/"
## Alias declarations for resources outside the DocumentRoot
Alias /dashboard/static "/usr/share/openstack-dashboard/static"
## Directories, there should at least be a declaration for /var/www/
<Directory "/var/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
## Logging
ErrorLog "/var/log/httpd/horizon_error.log"
ServerSignature Off
CustomLog "/var/log/httpd/horizon_access.log" combined
## RedirectMatch rules
RedirectMatch permanent ^/$ /dashboard
## Server aliases
ServerAlias 10.xxx.xxx.xxx
ServerAlias xxx.xxx.com
ServerAlias localhost
WSGIDaemonProcess dashboard group=apache processes=3 threads=10 user=apache
WSGIProcessGroup dashboard
WSGIScriptAlias /dashboard "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
</VirtualHost>
这个问题现在已经解决了。它现在起作用了。解决方案是: 将外部域名http://external.domain.name/作为服务器别名添加到虚拟主机配置中,如下所示:
相关问题 更多 >
编程相关推荐