简体   繁体   中英

How to load index.php first on Apache?

I have configured a website on a Windows Server 2008 R2 on APACHE24 and PHP.

It is working properly. But my problem is, it is not working on port 80.

It can be accessed by:

12.XXX:3000/ors

But what I want is it can be load by only entering the IP Address.

12.XXX

which I think it can be done by setting the port on the default 80.

When I change the Listen: and ServerName to 12.XXX:80 and try to load it says cannot connect to the IP.

Open httpd.conf file. apache->bin->httpd.conf and edit the following line:

<IfModule dir_module> DirectoryIndex php index.php3 index.html index.htm </IfModule>

and restart server.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM