example virtualhost django apache2

Django -- Posted on July 6, 2019

example virtualhost django apache2

              
                <VirtualHost *:80>
	ServerName myproject
	WSGIScriptAlias / c:/myproject/myproject/myproject/wsgi.py
	Alias /favicon.ico c:/myproject/myproject/favicon.ico
	Alias /media/ c:/myproject/myproject/media/
	Alias /static/ c:/myproject/myproject/static/
	DocumentRoot c:/myproject/myproject/
  CustomLog c:/log/web_access.log combined
  ErrorLog c:/log/web_error.log
  LogLevel warn
	<Directory  "c:/myproject/myproject/myproject/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
                  
   
            

Related Posts