How to add pseudo-static files in nginx

Source: Internet
Author: User
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

  1. Cd/alidata/server/nginx/conf/rewrite

Enter

  1. 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

  1. 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

  1. /Alidata/server/nginx/sbin/nginx-t




Have you seen it?



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.