Hi, Solved, the problem was wordpress theme. thanksby hussan - How to...
hi, i have a wordpress blog using nginx/php-fpm/varnish and this situation: config: server { listen 8080; #listen [::]:80 default_server ipv6only=on; root /home/xxx/www.site.com; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name www.site.com # error_page 404 /404.html; #by hussan - How to...
Hi, i have this configuration: server { listen 8080; server_name xxx.com; root "/home/xxx/xxx.xxx.com.xx"; index index.php; client_max_body_size 10m; location / { try_files $uri $uri/ /index.php$uri?$args; } location ~ "^(.+\.php)($|/)" { fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAMEby hussan - How to...
Hi, i have this config: location ^~ /blog/ { root /home/xxx/blog.xxx.com; index index.php index.html index.htm; } location / { try_files $uri $uri/ /index.php$uri?$args; } location ~ "^(.+\.php)($|/)" { # try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$by hussan - How to...
Hi, i have 2 nginx server, one with my main site(www.site.com) and other nginx server with my blog(www.site2.com). My nginx server 1 have this configurarion: on location /blog/ i have a (proxy_pass) to blog on nginx server 2 *========== server { server_name www.site.com; root "/home/site/site.com"; index index.php; client_max_body_size 10m; access_log /home/siby hussan - Nginx Mailing List - English
Hi, How i can create this rules in nginx ? When i have : www.site.com/css/css.css ---> www.site.com/template/webroot/css/css.css www.site.com/img/img.jpg ---> www.site.com/template/webroot/img/img.jpg and when: www.site.com/css/admin/css.css ---> www.site.com/admin/webroot/css/admin/css.css www.site.com/img/admin/img.jpg ---> www.site.com/admin/webroot/img/admin/imby hussan - Migration from Other Servers
Hi, i make some rules to nginx: location ~ \.(png|gif|jpg|jpeg|js|css|swf)$ { rewrite ^ http://$host/webroot/img_handler.php?arg=${uri} permanent; } if (!-e $request_filename) { rewrite ^/webroot$ /webroot/ permanent; rewrite ^/webroot/(.*)$ /webroot/index.php?url=$1 last; rewrite ^/(.*)$ /webroot/index.php?url=$1 last; } example: when access site.com/controller sby hussan - Migration from Other Servers
Hi, i have this rewrite in my application: /.htaccess <IfModule mod_rewrite.c> RewriteEngine on RewriteRule (.*\.(png|gif|jpg|jpeg|js|css|swf))$ webroot/img_handler.php?arg=$1 RewriteRule ^$ webroot/ RewriteRule (.*) webroot/$1 </IfModule> # test 5 # disable directory browsing -IMPORTANT, do NOT remove. Options -Indexes # protect the htaccess fileby hussan - Migration from Other Servers
hi, i have nginx for windows and in directory html i have kumbia in kumbia i have this htaccess DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/public/ RewriteRule (.*) app/public/$1 </IfModule> how i can transform to nginx rewrite rules? tanksby hussan - Migration from Other Servers