How to when there is a "@" string in the path of the URL - 404 should be returned? Example: http://example.com/aa@aa.com/ - should return 404 http://example.com/img/ - should work as usual Thanks in advance...by nexon - Migration from Other Servers
I have tried this: ------------------------------------------------------ location / { rewrite ^(.*)$ /index.php?q=$1 break; } ------------------------------------------------------ And this: ------------------------------------------------------- if ($request_filename !~ "index.php$"){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite ^/(.*)$by nexon - How to...
How to port this .htaccess rules to be used on a nginx webserver: ----------------------------------------------------------------------------- Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !index\.php$ RewriteRule ^(.*)$ index.php?q=$1 ------------------------------------------------------------------------------ Thanks, Nexonby nexon - How to...
Thank's Mark, problem solved...by nexon - Nginx Mailing List - English
Thank you Valentin, this solved my problem...by nexon - Nginx Mailing List - English
Yes, this would be much beter, but I am stuck with my conf as it is... Thank'sby nexon - Nginx Mailing List - English
> Would this help? > > location = /favicon.ico { > try_files /images/$server_name.ico /favicon.ico =204; > } > > M. > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx I have several vhosts, this is part of the config file for vhost in question: serveby nexon - Nginx Mailing List - English
> From you description I don't fully understand what exactly is your > current > file structure but you can use try_files ( > http://wiki.nginx.org/HttpCoreModule#try_files ) and add the $host > variable > in whatever place is needed. > > For example: > > location /favicon.ico { > try_files /images/$host/favicon_example.ico /favicon.ico; > }by nexon - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > On Aug 31, 2012, at 15:44 , nexon wrote: > > >> Anything except favicons in this servers is the same ? > > > > Please explain your question. > > If I understand you correctly, you are asking is every subdomain > have their > > own page, than yes. > > The trick isby nexon - Nginx Mailing List - English
> Anything except favicons in this servers is the same ? > > > -- > Igor Sysoev > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx Please explain your question. If I understand you correctly, you are asking is every subdomain have their own page, than yes. The trby nexon - Nginx Mailing List - English
Igor Sysoev Wrote: ------------------------------------------------------- > Why not to create a separate server block for each site instead of > this > if/rewrite mess ? > > > -- > Igor Sysoev > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx Can't do tby nexon - Nginx Mailing List - English
Nginx rewrite rules for favicon.ico for multiple subdomains. In nginx /etc/sites-avaliable/vhost_config_file, I have the following rewrite rules for serving multiple subdomains with their favicon.ico files: if ($host = example1.example.com){ rewrite ^/favicon.ico$ /favicon_example.ico break; } if ($host = example2.example.com){ rewrite ^/favicon.ico$by nexon - Nginx Mailing List - English