Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

3 folders and permalinks Wordpress

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
diaz.marcos
Posts: 3
Joined: Wed Jun 24, 2015 6:23 am

3 folders and permalinks Wordpress
  • Quote

Post by diaz.marcos » Sun Jun 28, 2015 3:17 pm

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*;
}
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: 3 folders and permalinks Wordpress
  • Quote

Post by skurudo » Wed Jul 15, 2015 1:51 pm

I don't get it, create folder - upload script and then istall from web.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password