Guest User

Untitled

a guest
Jun 20th, 2020
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2.         ServerName site.ru
  3.         ServerAlias www.site.ru
  4.         DocumentRoot /home/admin/site_backend/
  5.         RewriteCond %{REQUEST_URI} !/static/
  6.         RewriteCond %{REQUEST_URL} !/media/
  7.         RewriteRule (.*) http://localhost:5000/ [P]
  8.  
  9.         Alias /media/ /home/admin/site_backend/media/
  10.  
  11.         <Directory /home/admin/site_backend/media/>
  12.                 Require all granted
  13.                 Order deny,allow
  14.                 Allow from all
  15.         </Directory>
  16.  
  17. </VirtualHost>
RAW Paste Data