Page 1 of 1

3 folders and permalinks Wordpress

Posted: Sun Jun 28, 2015 3:17 pm
by diaz.marcos
I need create 3 Wordpress install 1 root 1 in /es Folder and 1 inside /en folder and using permalinks.
---------------
In other nginx server without vestacp this is works but inside vestacp i can't translate.
---------------
WITHOUT VESTACP

rewrite ^/en/(.*)$ https://www.*****.com/en/$1 permanent;
rewrite ^/es/(.*)$ https://www.*****.com/es/$1 permanent;

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

location /es/ {
try_files $uri $uri/ /es/index.php?q=$uri&$args;
}

location /en/ {
try_files $uri $uri/ /en/index.php?q=$uri&$args;
}

---------------
WITH VESTACP

server {
listen 65.***.***.***:443;
server_name ******.com www.******.com;
ssl on;
ssl_certificate /home/admin/conf/web/ssl.******.com.pem;
ssl_certificate_key /home/admin/conf/web/ssl.******.com.key;
error_log /var/log/apache2/domains/******.com.error.log error;



location / {
proxy_pass https://65.***.***.***:8443;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|exe|pdf|doc|xls|ppt|txt|odt|ods|odp|odf|tar|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ {
root /home/admin/web/******.com/public_shtml;
access_log /var/log/apache2/domains/******.com.log combined;
access_log /var/log/apache2/domains/******.com.bytes bytes;
expires max;
try_files $uri @fallback;


}



}






location /error/ {
alias /home/admin/web/******.com/document_errors/;
}

location @fallback {
proxy_pass https://65.***.***.***:8443;
}

location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}

disable_symlinks if_not_owner from=/home/admin/web/******.com/public_html;

include /home/admin/conf/web/snginx.******.com.conf*;
}

Re: 3 folders and permalinks Wordpress

Posted: Wed Jul 15, 2015 1:51 pm
by skurudo
I don't get it, create folder - upload script and then istall from web.