hi nipun, please go read about the DocumentRoot directive [1] and VirtualHosts [2] in Apache.
[1] http://httpd.apache.org/docs/2.2/mod/core.html#documentroot [2] http://httpd.apache.org/docs/2.2/vhosts/ On Dec 23, 8:06 am, nipun batra <nipunredde...@gmail.com> wrote: > Hi,I got my Apache Mod_WSGI and Django working > followinghttp://blog.stannard.net.au/2010/12/11/installing-django-with-apache-... > a twist that my 000-default site has the contents > > <VirtualHost *:80> > ServerAdmin webmaster@localhost > DocumentRoot /home/nipun/webdev/demo/demo > > <Directory /home/nipun/webdev/demo/demo> > Order allow,deny > Allow from all > > WSGIDaemonProcess demo.djangoserver processes=2 threads=15 > display-name=%{GROUP} > WSGIProcessGroup demo.djangoserver > > WSGIScriptAlias / /home/nipun/webdev/demo/demo/apache/django.wsgi > </Directory> > > DocumentRoot /var/www > <Directory /> > Options FollowSymLinks > AllowOverride None > </Directory> > <Directory /var/www/> > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow from all > </Directory> > > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ > <Directory "/usr/lib/cgi-bin"> > AllowOverride None > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > Order allow,deny > Allow from all > </Directory> > > ErrorLog ${APACHE_LOG_DIR}/error.log > > # Possible values include: debug, info, notice, warn, error, crit, > # alert, emerg. > LogLevel warn > > CustomLog ${APACHE_LOG_DIR}/access.log combined > > Alias /doc/ "/usr/share/doc/" > <Directory "/usr/share/doc/"> > Options Indexes MultiViews FollowSymLinks > AllowOverride None > Order deny,allow > Deny from all > Allow from 127.0.0.0/255.0.0.0 ::1/128 > </Directory> > > </VirtualHost> > > So using this configuration i can basically run my Django sites > likehttp://localhost/metafor instance where meta calls corresponding view > > However now when i try to load index.html(which has some javascript and > html code) lying on my /var/www it tries to match that using URL's > specified in urls.py of my Django project which i have configured with > Apache. > > How can i modify the settings so that i shall be able to run scripts under > /var/www and also Django sites on localhost > > Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.