Bonjour,
j'ai lu un article que nginx est plus rapide qu'apache, donc après installation, j'ai créé un fichier dans /etc/nginx/conf.d/pample.fr.conf je redémarre le serveur et toujours le meme message sur la page
"404 Not Found
nginx"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 server { listen 80; server_name pample.fr; root /var/www/html/pample; # Static location / { index index.html index.htm index.php; try_files $uri $uri/ @extensionless-php; } location @extensionless-php { rewrite ^(.*)$ $1.php last; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Security location ~ /\.ht { deny all; } location = /favicon.ico { access_log off; return 204; } location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ { expires 30d; #access_log off; #set $memcached_key $uri; #memcached_pass 127.0.0.1:11211; } }
Partager