Heim >Backend-Entwicklung >PHP-Tutorial >Tipps zur Verwendung von Apache

Tipps zur Verwendung von Apache

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-08-08 09:31:251288Durchsuche

1. Multi-Site-Konfiguration:

1. Öffnen Sie httpd.conf und aktivieren Sie das virtuelle Verzeichnis:

<Directory />
    options FollowSymLinks
    AllowOverride all
    Allow from all
    #Require all denied
</Directory>

2 🎜>

Include conf/extra/httpd-vhosts.conf,

3. Ändern Sie den Knoten

<pre name="code" class="html"><VirtualHost *:80>
        ServerAdmin webmaster@dummy-host.example.com 
        DocumentRoot "/var/www/cloud_whirlpool_china"
        ServerName cloud.whirlpool-china.com
        ServerAlias cloud.whirlpool-china.com
        ErrorLog "logs/cloud.whirlpool-china.com-error_log"
        CustomLog "logs/cloud.whirlpool-china.com-access_log" common
</VirtualHost> 

 Sie können VirtualHost auch direkt im httpd konfigurieren .conf-Datei. 
2. Einstellungen für Fernzugriffsberechtigungen:

1. Richten Sie die Firewall ein

2. Ändern Sie die Konfigurationsdatei:

/etc/httpd/conf /httpd.conf

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

3. Allgemeine Befehle

/bin/systemctl start httpd.service     #启动
/bin/systemctl restart httpd.service   #重启
/bin/systemctl status httpd.service    #查看状态

Das Obige stellt die Tipps zur Verwendung von Apache vor, einschließlich Aspekten des Inhalts. Ich hoffe, dass es für Freunde hilfreich ist, die sich für PHP-Tutorials interessieren.

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn