apache不能被外网访问
要怎么配置apache才可以被外网访问?
我是用phpnow弄得,本地可以访问。
单独修改http.conf里面的listen ,把127.0.0.1:80;修改成我当前的ip重启apache会提示
“The requested operation has failed!”
win7的防火墙已经关了(关了应该就不会阻止了吧),杀毒软件和安全工具也关了,还是没用
回复讨论(解决方案)
Listen 80
即可
然后直接输入我的ip就可以了?
Listen 80
即可
直接输入我的ip就能访问?
Listen 80
即可
遇到大神顺便多问一点。。
http。conf里面的listen是可以随便添加监听的地址的吗?
比如我想监听两个地址就可以
listen XXXXXX
listen ******
想监听两个端口
listen 80
listen 8080
.......
应该是这样的
不过还需要与虚拟机绑定
应该是这样的
不过还需要与虚拟机绑定
怎么个绑定法?比如我用自己的电脑做服务器,没有域名,直接访问ip。
apache你怎么去访问外网,有独立的ip,虚拟主机?
apache你怎么去访问外网,有独立的ip,虚拟主机?
是说别人访问我。。。。
为什么不可以?
我的电脑就是服务器,为什么还要虚拟主机,就算要用apache就可以建一个啊
ip用动态也可以啊,只要短时间能访问我,而且可以动态解析域名,用域名不就搞定了。。。
怎么想都是可以的啊。。郁闷
应该是这样的
不过还需要与虚拟机绑定
你应该让我好心虚。。帮人帮到底啦
多给点信息
也试过监听8080;
本地访问可以,内网访问也可以,输入公网ip也可以。
断开网络连接以后,本地访问可以,内网居然也可以,公网ip就不行了。
目前是这个情况,是哪里不对?
路由器?什么网络环境,学校?确定外网IP和网卡IP是一个?
路由器?什么网络环境,学校?确定外网IP和网卡IP是一个?
是学校。外网ip是用别的工具检测出来的,就是路由的ip
apache你怎么去访问外网,有独立的ip,虚拟主机?
是说别人访问我。。。。
为什么不可以?
我的电脑就是服务器,为什么还要虚拟主机,就算要用apache就可以建一个啊
ip用动态也可以啊,只要短时间能访问我,而且可以动态解析域名,用域名不就搞定了。。。
怎么想都是可以的啊。。郁闷 如果是局域网,直接拿ip就可以访问,你看看别人的机器能否ping通你的机器。
你的电脑如果不是公共电脑,没有映射,别人是访问不了的,需要做映射
你的电脑如果不是公共电脑,没有映射,别人是访问不了的,需要做映射
就是路由转发么。。做了
如果是局域网,直接拿ip就可以访问,你看看别人的机器能否ping通你的机器。
能

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.
