修改httpd.conf以在EasyPHP中通过Internet提供服务 [英] Modifying httpd.conf to serve over the internet in EasyPHP

查看:65
本文介绍了修改httpd.conf以在EasyPHP中通过Internet提供服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows上运行EasyPHP.默认安装仅在回送接口127.0.0.1上打开端口80.我也希望我的站点也可以通过本地网络访问.没有简单的EasyPHP设置可用于启用我的其他界面,例如已连接到Internet的界面(假设为192.168.1.3).我应该在Apache httpd.conf中添加/修改什么?

I'm running EasyPHP on Windows. The default install just opens port 80 on the loopback interface, 127.0.0.1. I want my sites to be accessible over the local network too. There are no simple EasyPHP settings for enabling my other interface, like the one that's connected to the internet (let's say 192.168.1.3). What do I add/modify in Apache httpd.conf?

推荐答案

在您的httpd.conf中使用此代码

Use this code in your httpd.conf

ServerName localdomain

# env
SetEnv TMP "/tmp"
ServerAdmin admin@devserver
DocumentRoot "/var/www"

#NameVirtualHost *:80
#Listen 80

##################################################################
# default
<VirtualHost *:80>
  DocumentRoot "/var/www"
  ServerName localhost
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/var/www"
  ServerName www.localdomain.com
</VirtualHost>

**我只是意识到EasyPHP是用于Windows的.您可以使用/var/www

** I just realize EasyPHP is for windows. You might use c:/path/to/www instead of /var/www

这篇关于修改httpd.conf以在EasyPHP中通过Internet提供服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆