[opencms-dev] How? /cgi-bin/ and OpenCMS ROOT installation?
Daniel Rhoden
drhoden at iiwinc.com
Wed Mar 16 16:51:18 CET 2005
I couldn't find anything in the official docs that explains what '!'
means in this context, so I just went with my gut.
I ended up creating a symlink in the ROOT folder for the /cgi-bin folder
and pointed it to /var/www/cgi-bin and that seems to solve the problem,
sort of. There are a few things about this that makes it appear sloppy
for virtual hosting, but hey, it works.
So, in summary, added the following to the virtual host entry of
httpd.conf to allow access to /cgi-bin:
ProxyPass /cgi-bin/ !
And then create a symlink like so:
pwd = /opt/tomcat5/webapps/ROOT/
ln -s /var/www/cgi-bin/ ./cgi-bin
Then restart httpd.
Also, because SEO is such a big concern nowadays, you might be
interested in the change I made in the opencms-importexport.xml file. I
also removed the $SERVLET_NAME variable from the vfs path. Otherwise,
every single link created with <cms:link> has /opencms/ at the
beginning, and thus, *every* link becomes a redirect (SEO anathema).
Thanks for your help and hope you have a great day!
--Daniel Rhoden
Alexander Kandzior wrote:
>You should explore the options that mod_proxy offers.
>
>A hint: Check out the mod_proxy docs on what lines like the following are
>actually used for:
>
>ProxyPass /export/ !
>
>Best Regards,
>Alex.
>
>Alexander Kandzior
>Alkacon Software - The OpenCms Experts
>http://www.alkacon.com
>
>
>
>
>
>>-----Original Message-----
>>From: opencms-dev-bounces at opencms.org
>>[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Daniel Rhoden
>>Sent: Wednesday, March 16, 2005 12:08 AM
>>To: The OpenCms mailing list
>>Subject: [opencms-dev] How? /cgi-bin/ and OpenCMS ROOT installation?
>>
>>I have OpenCMS 6 beta 1 running as the ROOT application and
>>resolving like so:
>>http://www.mysite.com/
>>or
>>http://www.mysite.com/system/login/
>>
>>My question is this:
>>
>>Now that I have implemented all the fun stuff in the
>>"Integrating OpenCms, Tomcat and the Apache webserver with
>>mod_proxy", how do provide access to my scripts, particurlaty
>>AWstats?
>>
>>Essentially, I need to be able to do this:
>>
>>http://www.mysite.com/cgi-bin/awstats/awstats.pl
>>
>>After the changes, here is what my httpd.conf file looks like
>>for this particular configuration:
>>
>><VirtualHost xxx.xxx.xx.xxx:80>
>><Directory /home/admin/mysite.com/html>
>>Options Indexes Includes FollowSymLinks
>>AllowOverride All
>></Directory>
>>ScriptAlias /cgi-bin/awstats /var/www/cgi-bin/awstats Alias
>>/awstats /var/www/html/awstats ScriptAlias /cgi-bin/awstats
>>/var/www/cgi-bin/awstats Alias /awstats /var/www/html/awstats
>>ServerName mysite.com DocumentRoot /opt/tomcat5/webapps/ROOT/
>>SuexecUserGroup admin admin ServerAlias "www.mysite.com"
>>"ftp.mysite.com" "mail.mysite.com"
>>ServerAdmin "admin at mysite.com"
>>ScriptAlias "/cgi-bin/" "/home/admin/mysite.com/cgi-bin/"
>>CustomLog "/home/admin/aruba-guide.info/access_log" "combined"
>>ErrorLog "/home/admin/aruba-guide.info/error_log"
>>
>># Log only non-redirect requests in "normal" log file
>>SetEnvIf Request_URI "\/opencms\/*" redirect CustomLog
>>logs/aruba-guide-access.log common env=!redirect
>>
>>ProxyPass /opencms/ !
>>RedirectPermanent /opencms/
>>http://www.aruba-guide.info/
>>
>>ProxyPass /resources/ !
>>ProxyPass /export/ !
>>
>>ProxyPass /
>>http://127.0.0.1:8081/opencms/
>>ProxyPassReverse /
>>http://127.0.0.1:8081/opencms/
>>
>></VirtualHost>
>>
>>
>>Could I simply add the following line to make this work:
>>ProxyPass /cgi-bin/ !
>>
>>
>>Thanks
>>
>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list To
>>change your list options, or to unsubscribe from the list,
>>please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050316/8c836446/attachment.htm>
More information about the opencms-dev
mailing list