On 3 July 2010 16:53, Shady <[email protected]> wrote:
> Was wondering if it was possible, using WSGIScriptAlias, to create a
> path where it points to both the folder and a file. Meaning if I type
> "url.com/a/" it opens index.wsgi, but if I type "url.com/a/file.wsgi"
> it opens that file instead.
>
> If that's not possible, is this an appropriate method to take:
>
> WSGIScriptAlias /a/ /public_html/scripts/wsgi/index.wsgi
> WSGIScriptAlias /a/ginger.wsgi /public_html/scripts/wsgi/ginger.wsgi
> WSGIScriptAlias /a/pm.wsgi /public_html/scripts/wsgi/pm.wsgi
>
> Somehow I doubt it...
>
> Also, is it possible to restrict access to sub folders, since I'm
> going to be adding custom paths instead? For example, if I type the
> actual folder name "url.com/a/main_section/" it doesn't work, but only
> if I type the path I suggested. If that's not possible, is the only
> alternate method to name my subfolders how I want them to appear (want
> to keep the URL clean and simple).
>
> I managed to get the top part working using Apache's Directory method
> as shown in the wiki, but not the second as all sub folders can be
> accessed. I tried a mixture of both but now a sub-folder can be
> accessed both ways.
>
> I'm wondering if there's a way to do it using the WSGI's Alias instead
> of Apache's default method. If not, will I be missing out on any WSGI
> features using Apache's method?

Have you read:

  
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive

If you did, what configuration based on that were you trying that didn't work?

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to