开发者

Apache web server via socket?

Basically, I want to access the websites hosted in Apache from a socket instead of a port such as 80. So that even if no network is set up in my computer, I would still 开发者_如何学JAVAbe able to use the Apache web server.

I remeber MySQL has such a thing that clients can connect to the MySQL server via socket rather than a network connection.

The reason for this is I want to use Apache as a local environment ONLY and prevent it from occupying the 80 port.

Any way to achieve this?


I think you may be able to achieve your goal by binding apache to the local interface. You can place this in your config file:

Listen 127.0.0.1:8000

This will only accept local connections on port 8000.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜