hy when i try to go to my website in local like http://mediawiki.dedibox.fr/, i get the message It works! This is the default web page for this server. etc... but normally i must have my index.php and not that , i don' t understand why i get this message . this is my nginx.conf *events { worker_connections 1024; } http { include mime.types; passenger_root /usr/local/xxxx/ruby-1.9.3-p125/gems/passenger-3.0.19; passenger_ruby /usr/local/xxxx/ruby-1.9.3-p125/ruby; passenger_max_pool_size 10; default_type application/octet-stream; sendfile on; ## TCP options tcp_nopush on; tcp_nodelay on; ## Timeout keepalive_timeout 65; types_hash_max_size 2048; server_names_hash_bucket_size 128; proxy_cache_path /mnt/donner/nginx/cache levels=1:2 keys_zone=one:10m; gzip on; server_tokens off; * * include /usr/local/xxx/nginx/vhosts-available/*; include /usr/local/xxx/nginx/vhosts-available/*.conf; * server { * listen 80; passenger_enabled on; passenger_use_global_queue on; error_log /home/logs/nginx/error.log; access_log /home/logs/nginx/access-global.log; } }* * vhosts-available/mediawiki.conf* server { listen 80 ; server_name mediawiki.dedibox.fr; root /home/sites_web/mediawiki; index index.php index.html; error_log /home/logs/mediawiki/error.log; access_log /home/logs/mediawiki/access.log; location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/sites_web/mediawiki/$fastcgi_script_name; include /usr/local/centOs/nginx/conf/fastcgi_params; } } thank you very much for your help . And have a good day
on 2013-01-14 18:47
on 2013-01-14 19:11
Your site is using the default server block in conf.d. There is a hierarchy in the listen format, looks like the default is above listen 80; simplest way is to either remove the default, or name your site.
on 2013-01-14 21:33
i have change the name in the parameter server_name , but i continue to pointe on It works! etc... 2013/1/14 Steve Holdoway <steve@greengecko.co.nz> > > > > > * > * > access_log /home/logs/mediawiki/access.log; > } > > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx > -- Cordialement Olivier Morel tel : 06.62.25.03.77
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.