Home >Backend Development >PHP Tutorial > 小弟我想在自己电脑下搭服务器,远程能够访问,如何配置apache

小弟我想在自己电脑下搭服务器,远程能够访问,如何配置apache

WBOY
WBOYOriginal
2016-06-13 12:55:58831browse

我想在自己电脑上搭服务器,远程能够访问,怎么配置apache?
1 我已经有域名
2 我通过花生壳来动态域名解析,和我电脑当前的ip对应在一起
//-------------------------------------
我还需要在apache上配置什么吗?求解释


------解决方案--------------------
装好apache后会开80端口,你就在外部可以直接访问了。
------解决方案--------------------
80的话就是默认的,访问时连端口都没必要写
------解决方案--------------------
配置域名指定mysql.xxxx.com  等解析至花生壳所解析的那台服务器ip。ip指定至域名
NameVirtualHost *:80

    DocumentRoot "D:/xxxx/"
    ServerName xxxx.com
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common


    DocumentRoot "D:/xxxx/mysql/"
    ServerName mysql.xxxx.com
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common


百度apache 域名配置很多
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn