Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste ÜberarbeitungBeide Seiten der Revision | ||
centos:web_c7:webstats [20.01.2015 16:42. ] – [NGiNX vHost] django | centos:web_c7:webstats [20.01.2015 17:07. ] – [Anwendung] django | ||
---|---|---|---|
Zeile 3251: | Zeile 3251: | ||
// DEFAULT: false | // DEFAULT: false | ||
// POSSIBLE VALUES: true, false | // POSSIBLE VALUES: true, false | ||
- | // Django : 2015-01-13 | + | $BAW_CONF[' |
- | $BAW_CONF[' | + | |
// NAME: Path to JPGraph | // NAME: Path to JPGraph | ||
// INFO: Where is your JPGraph installation? | // INFO: Where is your JPGraph installation? | ||
// in. No trailing slash) | // in. No trailing slash) | ||
- | // Django : 2015-01-13 | + | $BAW_CONF[' |
- | // DEFAULT: '/ | + | |
- | $BAW_CONF[' | + | |
Zeile 3837: | Zeile 3834: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | Haben wir die Konfigurationsdatei vervollständigt, | ||
+ | # apachectl -t | ||
+ | |||
+ | | ||
+ | |||
+ | Ein reload unseres Apache Webserver reicht nun aus, um den neunen vHOST verfügbar zu haben. | ||
+ | # systemctl reload httpd | ||
==== NGiNX vHost ==== | ==== NGiNX vHost ==== | ||
Wie auch schon bei der Installation und Konfiguration von [[centos: | Wie auch schon bei der Installation und Konfiguration von [[centos: | ||
+ | Im Konfigurationsverzeichnis // | ||
+ | # vim / | ||
+ | |||
+ | <file httpd / | ||
+ | listen | ||
+ | server_name | ||
+ | access_log | ||
+ | error_log | ||
+ | |||
+ | root / | ||
+ | index index.php index.html; | ||
+ | |||
+ | | ||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | fastcgi_index index.php; | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | include fastcgi_params; | ||
+ | } | ||
+ | |||
+ | location ~* ^/ | ||
+ | expires 1y; | ||
+ | root / | ||
+ | allow all; | ||
+ | } | ||
+ | |||
+ | location ~ icons { | ||
+ | allow all; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Die Konfigurationsdatei für **php-fpm**, | ||
+ | # vim / | ||
+ | <file httpd / | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | |||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | |||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | |||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | |||
+ | fastcgi_param X_SCRIPT_NAME | ||
+ | |||
+ | # PHP only, required if PHP was built with --enable-force-cgi-redirect | ||
+ | fastcgi_param | ||
+ | |||
+ | # Vhosts fastcgi config | ||
+ | fastcgi_pass | ||
+ | </ | ||
+ | |||
+ | ===== erstes Ergebnis ===== | ||
+ | Nach erfolgreicher Konfiguration steht dem ersten Aufruf nichts mehr im Wege. Der Aufruf erfolgt bei dem hier gezeigtem Konfigurationsbeispiel über folgende URL: | ||
+ | $ firefox http:// | ||
+ | {{ : | ||