Nginx Configuration File Syntax highlighted

Source: Internet
Author: User

Nginx Configuration File Syntax highlighted

After Nginx is installed, no syntax is highlighted in the configuration file, this may be tricky to configure, because I don't know whether to write correctly. Of course, if I believe that I can do this every time I fill in the configuration file, I don't need to do this. You can use the following method to highlight the configuration file.

1. Download nginx vim (syntax highlighting mainly calls the vim function ):

Http://www.vim.org/scripts/download_script.php? Src_id = 19394 this link is the official version 0.3.3 provided by vim in January 2013. It seems that the update is very slow or not updated.

2. Create the. vim/syntax directory in the home directory of the current user.

Then place the downloaded nginx. vim in the directory

3. Create a new file filetype. vim in the. vim directory and add the following content: (if the file exists in advance, add it directly at the end)

Au BufRead, BufNewFile/usr/local/nginx/conf/* if & ft = ''| setfiletype nginx | endif

/Usr/local/nginx/conf/* is the nginx configuration file path. Open the configuration file again to check whether the configuration file has been highlighted.

-------------------------------------- Split line --------------------------------------

Deployment of Nginx + MySQL + PHP in CentOS 6.2

Build a WEB server using Nginx

Build a Web server based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5

Performance Tuning for Nginx in CentOS 6.3

Configure Nginx to load the ngx_pagespeed module in CentOS 6.3

Install and configure Nginx + Pcre + php-fpm in CentOS 6.4

Nginx installation and configuration instructions

Nginx log filtering using ngx_log_if does not record specific logs

-------------------------------------- Split line --------------------------------------

Nginx details: click here
Nginx: click here

This article permanently updates the link address:

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.