Szerző Téma: NGINX Ubuntu  (Megtekintve 698 alkalommal)

Nem elérhető KDDomi

  • 976
    • Profil megtekintése
NGINX Ubuntu
« Dátum: 2016. Május 03. - 16:47:39 »
0 Show voters
Sziasztok. Van egy VPS-em amin Ubuntu 14.04 fut, felraktam rá az nginx-et php5-fpm-el beállítottam elméletileg a php processt de amint megpróbálom nyitni az index.php-t amiben csak phpinfo(); van írva csak egy fehér lapot látok.
Így néz ki az nginx konfig fájlom:
 
server {
        listen 80;
        server_name localhost;
        root /var/www;
        index index.php index.html;
        location / {
                try_files $uri $uri/ =404;
        }
        location ~ \\.php$ {
       try_files $uri =404;
       include /etc/nginx/fastcgi_params;
       fastcgi_pass unix:/var/run/php5-fpm.sock;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               fastcgi_intercept_errors on;
               fastcgi_split_path_info ^(.+\\.php)(.*)$;
               fastcgi_hide_header X-Powered-By;
        }   
}
 

 
Mindent megpróbáltam már mindenhol utánanéztem de nem sikerült megoldani. Előre is köszönöm!

NGINX Ubuntu
« Válasz #1 Dátum: 2016. Május 03. - 17:50:15 »
0 Show voters
server_name localhost;     a localhostot írd át az ip-re vagy a domainra, utána restartold az nginxet és próbáld meg úgy

Nem elérhető KDDomi

  • 976
    • Profil megtekintése
NGINX Ubuntu
« Válasz #2 Dátum: 2016. Május 03. - 17:59:08 »
0 Show voters
Idézetet írta: hektorka date=1462290615\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"60273\" data-ipsquote-contentclass=\"forums_Topic
server_name localhost;     a localhostot írd át az ip-re vagy a domainra, utána restartold az nginxet és próbáld meg úgy
 
Úgy is próbáltam ipcímre átírva és semmi ugyanúgy.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal