Openstack Kilo仪表板前进

2024-04-19 19:14:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在局域网中设置了基洛,它不能被外部网络访问。现在,我想做一个转发,使它可以从外部访问。如何设置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>

Tags: ipcomloghttphostopenstackvarapache