Jump to content

multi language on Nginx


pwired
 Share

Recommended Posts

I have installed processwire version 2.7.2 with multi language on a Nginx server on windows 7.
I have installed processwire inside a subfolder templates1

During the processwire installation I had 2 issues with gd 2.0 missing and mod_rewrite

but I could solve them this way:

Removing the ; in front of "extension=php_gd2.dll" inside php.ini

Adding the line


The only thing that I still have not working is the multi language.
Nginx let's me open only the start page in the default language (english)
http://localhost/template1/

If I try to open the start page in another language it throws a 404 not found.
http://localhost/template1/de/

Also if I click on About in the top menu in the default language it throws a 404 not found.
http://localhost/template1/en/about/

This is what the first part of my nginx.conf looks like:
 

server {
        # access from localhost only
        listen       127.0.0.1:80;
        server_name  localhost;
        root         www/templates1;

Any ideas what is missing ?

I also tried and installed processwire directly in the root www but had the same multi language problems.

Only the start page in the default language worked.

Link to comment
Share on other sites

@Sérgio,

I just added your code but still the same problem. Only the start page opens in the default language.

server {
        # access from localhost only
        listen       127.0.0.1:80;
        server_name  localhost;
        root         www;
        location / {
	     try_files $uri $uri/ /index.php?it=$uri&$args;
        }
        location /template1 {
	     try_files $uri $uri/ /index.php?it=$uri&$args;
        }
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...