i have a problem with my virtual block
Steve Holdoway
steve at greengecko.co.nz
Mon Jan 14 18:11:17 UTC 2013
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 15/01/2013, at 6:46 AM, Olivier Morel <oliviermo75 at gmail.com> wrote:
>
> 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
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130115/95a57451/attachment.html>
More information about the nginx
mailing list