Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name example.com;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- location / {
- root /var/www/htdocs;
- }
- location ~* ^/(en|ru|zh|es|pt_br) {
- add_header Content-Language $1;
- alias /var/www/htdocs/$1/;
- }
- }
- $tree /var/www/htdocs
- htdocs
- ├── about.html
- ├── archives.html
- ├── contact.html
- ├── es
- │ ├── about.html
- │ ├── archives.html
- │ ├── contact.html
- │ ├── index.html
- ├── index.html
- ├── pt_br
- │ ├── about.html
- │ ├── archives.html
- │ ├── contact.html
- │ ├── index.html
- ├── ru
- │ ├── about.html
- │ ├── archives.html
- │ ├── contact.html
- │ ├── index.html
- ├── zh
- │ ├── about.html
- │ ├── archives.html
- │ ├── contact.html
- │ ├── index.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement