分享

我安装了allinone 的openstack, Dashboard 远程不能访问是怎么回事?

狗狗 发表于 2017-7-7 11:27:43 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 10659
我安装了allinone 的openstack, Dashboard 远程不能访问是怎么回事?

192.168.0.12  centos  安装了 allinone 的openstack
从192.168.0.13 Windows 上 可以访问 http://192.168.0.12/dashboard

但远程访问不能访问

192.168.0.12 有个 公网地址
访问 http://(192.168.0.12公网地址)/dashabord 就显示

Not Found
The requested URL /dashboard was not found on this server.



访问  http://(192.168.0.12公网地址)/ 可以显示  apache 的首页,

Testing 123..
This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that this site is working properly. This server is powered by CentOS.


请问怎么诊断问题?



已有(5)人评论

跳转到指定楼层
sstutu 发表于 2017-7-7 13:49:48
http://192.168.0.12/dashboard
楼主所说的远程访问,是怎么个访问法。上面链接其实就是远程访问。
回复

使用道具 举报

狗狗 发表于 2017-7-7 14:04:27

192.168.0.12 有个 公网地址
访问 http://(192.168.0.12公网地址)/dashabord 就显示
Not Found
The requested URL /dashboard was not found on this server.


我的问题就是这样
回复

使用道具 举报

狗狗 发表于 2017-7-7 14:07:16
这个 机器有个 公网IP 比如说 是 88.88.88.88

我访问 http://88.88.88.88/dashbaord  就显示

Not Found
The requested URL /dashboard was not found on this server.
回复

使用道具 举报

langke93 发表于 2017-7-7 16:09:20
狗狗 发表于 2017-7-7 14:07
这个 机器有个 公网IP 比如说 是 88.88.88.88

我访问 http://88.88.88.88/dashbaord  就显示

虽然是同一台机器,并不代表是同一个ip。你用的内网ip部署的,外网ip不一定可以。
这个运维的,试下映射等等试试
回复

使用道具 举报

狗狗 发表于 2017-7-8 15:43:52
这个问题我自己解决了

[root@instance-x66a0ogb conf.d(keystone_admin)]# vim 15-horizon_vhost.conf
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************

<VirtualHost *:80>
  ServerName instance-x66a0ogb

  ## 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 192.168.0.12
  ServerAlias instance-x66a0ogb
  ServerAlias cloud4u.top
  ServerAlias localhost
  WSGIDaemonProcess apache group=apache processes=3 threads=10 user=apache
  WSGIProcessGroup apache
  WSGIScriptAlias /dashboard "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
</VirtualHost>

我把 serveralias 加上了 公网的域名 现在可以 访问了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条