First, determine whether your environment is configured according to redhat one-click web environment installation guide. If not, configure the environment first.
First, determine whether your environment is configured according to redhat one-click web environment installation guide. If not, configure the environment first...
Import nginx configuration file directory first
Enter the following command
- Cd/alidata/server/nginx/conf/rewrite
Enter
- Ll
See if it is like the following
By the way. These are pseudo-static rule files. Open phpwind. conf.
We have configured pseudo-static rules for common programs in the rewrtie directory. You can call it directly.
If not, follow
Create a configuration file by naming program name. conf
The configuration file is clear, and you may say that the website's pseudo-static state is still ineffective. Don't worry, because pseudo-static rules need to be called by the website configuration file.
Enter the following command
- Cd/alidata/server/nginx/conf/vhosts
Go to the website configuration Directory
Learn how to add a website first in this article "How to add a website under nginx"
Open the configuration file
Modify the pseudo-static call File
Let's test whether the file we configured is correct.
Input
- /Alidata/server/nginx/sbin/nginx-t
Have you seen it?