【发布时间】:2016-10-25 19:24:06
【问题描述】:
老实说,我什至不确定这是否可行......
我已经在 /etc/apache2/sites-enabled 中配置了我的 vhosts 文件,您可以在此处查看:
<VirtualHost 159.203.171.140:8080>
ServerAdmin webmaster@localhost
ServerName 159.203.171.140:8080
DocumentRoot "/home/wiki/public_html"
DirectoryIndex index.php index.html
<Directory "/home/wiki/public_html">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/wiki_error.log
CustomLog ${APACHE_LOG_DIR}/wiki_access.log combined
</VirtualHost>
对于在上述主机文件中列出的 IP 给出的数字海洋液滴。除了 /home/ 中的 wiki 用户以及所需的 php、mysql/mariadb、apache 东西之外,这个 droplet 上什么都没有。
我想做的就是去 159.203.171.140:8080 看看我的网站,而不必购买一个无用的域名。
非常感谢您对此提供的帮助。
【问题讨论】:
-
这到底是怎么回事?
-
当我去 159.203.171.140:8080 时它不起作用。 Apache 已重启多次,我无法连接到该端口。
-
做过任何基本的调试,比如对你的 ip 进行端口扫描,以确保 8080 对外界开放?检查防火墙是否允许 8080?
标签: apache digital-ocean