3
2

It seems all the examples show osqa being installed in the root of a domain. Can someone explain how to install it in a subfolder like http://www.abc.com/answers/

Thanks, Doug

asked 17 Jul '10, 07:45

doug99's gravatar image

doug99
26161217
accept rate: 20%


I believe this was fixed in the Fantasy Island beta 1

In settings_local.py set

APP_URL = "http://domain.com/subdir"

http://www.osqa.net/2011/02/03/first-official-osqa-release/

http://jira.osqa.net/browse/OSQA-204

link

answered 11 Mar '11, 23:25

krst's gravatar image

krst
33085
accept rate: 33%

At present, we do not support this type of install. It has been done, but it will almost certainly be problematic. In the future we expect to make this a simple option. My advice for now is "don't do it."

link

answered 17 Jul '10, 09:23

rickross's gravatar image

rickross ♦♦
12.5k2914972
accept rate: 46%

Wish I knew that when I started. I just wasted 3 days of my life (well not really i learned a lot). I really love this script. How long till subdirectories are possible? You say it has been done. Can you point to a site doing that. Perhaps I can approach them and if they are nice they might answer. Thanks, Doug

(17 Jul '10, 09:37) doug99

Well just in case some KIND sole decides to help me. Here is what I have so far in my httpd.conf to try to glue this in as a subfolder:

    #run mod_wsgi process for django in daemon mode
    #this allows avoiding confused timezone settings when
    #another application runs in the same virtual host
    WSGIDaemonProcess OSQA
    WSGIProcessGroup OSQA

#force all content to be served as static files
    #otherwise django will be crunching images through itself wasting time
    Alias /answers/m/ /opt/OSQA/forum/skins/
    Alias /answers/upfiles/ /opt/OSQA/forum/upfiles/
    <Directory /opt/OSQA/forum/skins>
            Order deny,allow
            Allow from all
    </Directory>

Alias /answers  /opt/OSQA/forum
    WSGIScriptAlias /answers/ /opt/OSQA/osqa.wsgi

<directory opt="" osqa="" forum=""> Options +Indexes +IncludesNOEXEC +ExecCGI +FollowSymLinks allow from all AllowOverride All </directory>

(17 Jul '10, 10:10) doug99

Whats happening is that i get a directory listing instead of the script running. Any ideas???

(17 Jul '10, 10:11) doug99

Well, for a start you should get rid of this line:

Alias /answers  /opt/OSQA/forum

that's what's causing you to see the directory listing instead of the site. Then you should add this line to settings_local.py:

FORCE_SCRIPT_NAME = 'answers'

That should get you started, however, you may find some broken links here and there specially in emails.

(17 Jul '10, 12:39) Hernani Cerq... ♦♦
3

doug99, I am running a subdir install. Look at some of the JIRA issues I have filed to see what I did. Post followup comments if you have any improvements.

Basically, everything seems to work except sitemaps, links in emails, and links in announcements. However, SVN updates sometimes randomly break things because they don't test on a subdir install :(

It's a pity though, because subdir is advantageous for many non-technical reasons

(19 Jul '10, 02:03) Joseph

You should know this better than anyone by now. The bottleneck here is django and not OSQA, we generate every url using django reverse methods, and is not our fault that django generates the url with or without the subpath depending on the room temperature.

(19 Jul '10, 06:19) Hernani Cerq... ♦♦
showing 5 of 6 show 1 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×298
×33
×2
×1

Asked: 17 Jul '10, 07:45

Seen: 1,169 times

Last updated: 11 Mar '11, 23:25

powered by OSQA