Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: running Gitalist as a sub-directory of my main web site

by Corion (Pope)
on Sep 06, 2011 at 13:24 UTC ( #924381=note: print w/ replies, xml ) Need Help??


in reply to running Gitalist as a sub-directory of my main web site

Gitalist is a Catalyst application. I'm not sure what problem you found running gitalist_cgi.pl on your webserver. Maybe if you can tell us what problems you encounter we can help you with getting gitalist_cgi.pl to run.

If this is a question on how to configure Apache, you are in the wrong forum.

Update: Added link to Apache documentation


Comment on Re: running Gitalist as a sub-directory of my main web site
Download Code
Re^2: running Gitalist as a sub-directory of my main web site
by punkish (Priest) on Sep 06, 2011 at 14:06 UTC
    Obviously, I did a terrible job describing my problem. Let me retry --

    I have no problem running the app. It works fine if I invoke it as a standalone server like so.

    $ GITALIST_CONFIG=/path/to/gitalist.conf gitalist_server.pl

    Now I view the web site at http://127.0.0.1:3000. I can do a similar thing with plackup, and even specify a different port. All is good. However, I want to access the site at http://mywebserver.edu./gitalist. So, I set up an apache config file for the gitalist website like so

    ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /gitalist http://127.0.0.1:3000 ProxyPassReverse /gitalist http://127.0.0.1:3000

    Then I started the built-in gitalist server like above

    $ GITALIST_CONFIG=/path/to/gitalist.conf gitalist_server.pl

    Now I can go to http://mywebserver.edu./gitalist and the gitalist web site appears, except, all the internal links still point to http://127.0.0.1:3000. As a result, none of the CSS or the images appear correctly. All these links should be pointing to http://mywebserver.edu./gitalist. So, http://127.0.0.1:3000/path/to/gitalist.css should be http://mywebserver.edu./gitalist/path/to/gitalist.css. I don't see any Gitalist config option that allows me to change these links. And, this can't be solved with mod_rewrite.

    I hope my issue is clearer now. I will also update the original post with this information.



    when small people start casting long shadows, it is time to go to bed

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924381]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-07-05 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls