Was ist der Unterschied zwischen „Sites-available' und „Sites-enabled' in Nginx?
phpcn_u1582
phpcn_u1582 2017-06-10 09:49:31
0
1
1285

Welches sollte ich normalerweise ändern, wenn ich die Konfiguration ändere? Ich möchte die Konfiguration der Verbindung zu PHP ändern

phpcn_u1582
phpcn_u1582

Antworte allen(1)
我想大声告诉你
  If you are coming from Apache, the "sites-available" and "sites-enabled" 
directories will be familiar.

  These directories are used to define configurations for your websites. 
Files are generally created in the "sites-available" directory, and then
symbolically linked to the "sites-enabled" directory when they are ready 
to go live.

...

In the "nginx.conf" file, we can see that the end of the "http" block has:

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

How To Configure Nginx

sites-available是存放当前的server配置, 在这里修改

sites-enabled是激活并使用的server配置(从sites_available的文件创建快捷方式到sites-enabled)

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage