LCKB
Web Page for centos - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198)
+---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147)
+---- Thread: Web Page for centos (/showthread.php?tid=1342)

Pages: 1 2 3


- chris-2012 - 12-06-2012


/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




- maxig - 12-07-2012



/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