Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 09:46:32

Author Topic: nginxproxy don't work on wordpress if Permalinks is Custom  (Read 3134 times)

0 Members and 1 Guest are viewing this topic.

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
nginxproxy don't work on wordpress if Permalinks is Custom structure, example: /%year%/%month%/%postname%/
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: nginxproxy don't work on wordpress if Permalinks is Cust
« Reply #1 on: 2013-08-20, 20:32:06 »
I even added  try_files $uri $uri/ /index.php?q=$uri&$args;  to /etc/nginx/conf.d/virtual.conf then I did nginx -s reload

now file looks like this:


# A virtual host using mix of IP-, name-, and port-based configuration
#

#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;

#    location / {
#        root   html;
#        index  index.html index.htm;
#        try_files $uri $uri/ /index.php?q=$uri&$args;
#    }
#}



But as long as permanlinks is custome structure /%year%/%month%/%postname%/  blog posts dont work. As soon as I switch to standard Permalinks everything is fine . Check error http://adresemail.com/2013/%month%/new-project-coming-next-month-its-called-freshfolio-see-what-is-this-whole-thing-all-about-2/
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: nginxproxy don't work on wordpress if Permalinks is Cust
« Reply #2 on: 2013-08-20, 20:42:16 »
I tried with nginx alone as webserver with the same results.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: nginxproxy don't work on wordpress if Permalinks is Cust
« Reply #3 on: 2013-08-20, 20:55:56 »
Works, strange resolve..  I changed permalinks from /%year%/%month%/%postname%/     to  /%year%/%monthnum%/%postname%/     So what I did is to change month with monthnum and worked like a charm with default virtual.conf file.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.032 seconds with 19 queries.

web stats analysis