从远程主机访问php文件
我有一个主机运行与最小的centos 7,我已经build立了一个运行php内部docker的Apache服务器。 我的apache-config.conf文件如下所示: –
<VirtualHost xxxx.xxxx.com:80> ServerAdmin root@xxxx.xxxx.com DocumentRoot /var/www/dl <Directory “/var/www/site“> Options Indexes FollowSymLinks Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error_log CustomLog ${APACHE_LOG_DIR}/access_log combined </VirtualHost>
如果远程centos 7机器的主机名是xxxx.xxxx.com,我怎样才能访问我的Windows机器运行Firefox浏览器的PHP内容?
谢谢。
将你的apacheconfiguration中的xxxx.xxxx.com
replace为localhost
并尝试在浏览器http:// localhost中打开。