Author Topic: I need your help regarding the secondary directory of the website!  (Read 2818 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
After I set up a website, the running directory of the website program needs to point to the public directory of the program. The index.php file in this directory is used as the entry file. All HTTP requests will enter the application through this file. It is not found in the panel where it can be set directly. Everyone, what do I need to do?


Can the panel be added with the operation of graphically setting program access path in the next version?

Offline
***
Re: I need your help regarding the secondary directory of the website!
« Reply #1 on: November 11, 2021, 08:57:28 PM »
What webserver(s) are you using.?

Offline
*
Re: I need your help regarding the secondary directory of the website!
« Reply #2 on: November 12, 2021, 12:58:25 AM »
centos7  apache+nginx

Offline
***
Re: I need your help regarding the secondary directory of the website!
« Reply #3 on: November 13, 2021, 08:50:03 PM »
centos7  apache+nginx

Is nginx -> apache, right?

Check with the command
Code: [Select]
# grep -i DirectoryIndex /usr/local/apache/conf/httpd.conf

...if you have the following result:
Code: [Select]
# DirectoryIndex: sets the file that Apache will serve if a directory
DirectoryIndex index.php index.html.var index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.phtml default.htm default.html home.htm index.php5 Default.html Default.htm home.html

Changing the directive 'DirectoryIndex' in the apache server, changes your entry point in your server.
Change it to point justo to index.php
Code: [Select]
DirectoryIndex index.php
Regards,
Netino