i have change the name in the parameter server_name , but i continue to pointe on It works! etc...<br><br><div class="gmail_quote">2013/1/14 Steve Holdoway <span dir="ltr"><<a href="mailto:steve@greengecko.co.nz" target="_blank">steve@greengecko.co.nz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>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.<br>
<br></div><div><div class="h5"><div>On 15/01/2013, at 6:46 AM, Olivier Morel <<a href="mailto:oliviermo75@gmail.com" target="_blank">oliviermo75@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div><br clear="all">hy <br> when i try to go to my website in local like <a href="http://mediawiki.dedibox.fr/" target="_blank">http://mediawiki.dedibox.fr/</a> , i get the message <br><h1>It works!</h1>
<p>This is the default web page for this server. etc...</p><p><br></p><p>but normally i must have my index.php and not that , i don' t understand why i get this message .</p><p><br></p><p>this is my nginx.conf <br></p>
<p> <br></p><p><span style="font-family:comic sans ms,sans-serif"><i>events {<br> worker_connections 1024;<br>}<br><br><br>http {<br> include mime.types;<br> passenger_root /usr/local/xxxx/ruby-1.9.3-p125/gems/passenger-3.0.19;<br>
passenger_ruby /usr/local/xxxx/ruby-1.9.3-p125/ruby;<br> passenger_max_pool_size 10;<br><br><br><br> default_type application/octet-stream;<br><br> sendfile on;<br>## TCP options <br> tcp_nopush on;<br>
tcp_nodelay on;<br>## Timeout<br> keepalive_timeout 65;<br><br> types_hash_max_size 2048;<br> server_names_hash_bucket_size 128;<br> proxy_cache_path /mnt/donner/nginx/cache levels=1:2 keys_zone=one:10m;<br>
gzip on;<br> server_tokens off;<br><br></i></span></p><p><span style="font-family:comic sans ms,sans-serif"><i> include /usr/local/xxx/nginx/vhosts-available/*;<br> include /usr/local/xxx/nginx/vhosts-available/*.conf;<br>
</i></span></p><p><span style="font-family:comic sans ms,sans-serif"> server {<br></span></p><span style="font-family:comic sans ms,sans-serif"><i> listen 80;<br> passenger_enabled on;<br> passenger_use_global_queue on;<br>
<br> error_log /home/logs/nginx/error.log;<br> access_log /home/logs/nginx/access-global.log;<br> }<br>}</i></span><br><b><br><br>vhosts-available/mediawiki.conf</b><br><br>server {<br><br> listen 80 ;<br>
server_name <a href="http://mediawiki.dedibox.fr" target="_blank">mediawiki.dedibox.fr</a>;<br> root /home/sites_web/mediawiki;<br> index index.php index.html;<br> error_log /home/logs/mediawiki/error.log;<br>
access_log /home/logs/mediawiki/access.log;<br><br><br>location ~ .php$ {<br><br> fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br> fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME /home/sites_web/mediawiki/$fastcgi_script_name;<br>
include /usr/local/centOs/nginx/conf/fastcgi_params;<br><br> }<br>}<br><br><br>thank you very much for your help . <br>And have a good day <br>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span><a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a></span><br>
<span><a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></span></div></blockquote></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br><br clear="all"><br>-- <br>Cordialement <br><br>Olivier Morel<br>tel : 06.62.25.03.77