Posts: 109
Threads: 2
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2012
Reputation:
0
/etc/nginx/conf.d
thre should be a default.conf
this it also needed
should be something like this
server {
listen 80 default_server;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
if its the same output as here so then your directory of your php files must be
/usr/share/nginx/html
Posts: 206
Threads: 25
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2011
Reputation:
0
/etc/nginx/conf.d
thre should be a default.conf
this it also needed
should be something like this
server {
listen 80 default_server;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
if its the same output as here so then your directory of your php files must be
/usr/share/nginx/html
/etc/nginx/conf.d id folder empty.
and i create new default.conf and paste:
server {
listen 80 default_server;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
not is work for me not connect to server in index .php " index.html is work"
[root@239 ~]# service nginx restart
nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/conf.d/default.conf:17
nginx: configuration file /etc/nginx/nginx.conf test failed