This forum is no longer active. Please post your questions to our new community site

Apache configuration

Subscribe to Apache configuration 3 post(s), 2 voice(s)

 
Avatar clochemer 2 post(s)

Hi!

I don’t know if its posted in another Forum, but I don’t know how to change Apache configuration.
The fact is that I installed django stack and I had an application running on django developing server. So I moved my application from development environment to djangostack/projects. When I run apache I have that bitnami index page telling me everything is ok. I told djangostack installer to start a project with the same name as my djangodevel project.

Now apache DocumentRoot is pointing to htdocs where index page is allocated, in that index.html there is a link to my project. Right now, my problem is that urls.py is developed assuming that all requests to the app are from localhost/. I would like to have my project at the root.

I would really appreciate your help!

 
Avatar carlos Administrator 144 post(s)

Hi,

If you have configured a project, you can find a config file in: “${installdir}/apps/django/conf/django.conf”.

You should replace:

<location '/appname'>
with
<location '/'>
and restart Apache server.

If you keep getting the bitnami front page you may try commenting out the line:

DocumentRoot "${installdir}/apache2/htdocs"
in file “${installdir}/apache2/conf/httpd.conf”.

Let us know if it works for you.

Regards

 
Avatar clochemer 2 post(s)

Thank you very much! It worked for me.