Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 55
M
journeyman
journeyman
M Offline
Joined: Dec 2003
Posts: 55
Moving to a VPS and I am hoping there's a relatively simple way to get cgi to work outside of the cgi-bin folder. All my scripts use folders other than cgi-bin and I'll lose all search-engine links if I move now :/

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Shoulda asked me earlier; go edit your /etc/httpd/conf/httpd.conf, find any directives resulting in the building of each site:

Example:
Code
<Directory /home/ugn/public_html>
Options +ExecCGI Indexes FollowSymLinks
allow from all
deny from none
</Directory>
Add in +ExecCGI to the "Options" line and restart apache, you'll now be able to throw perl scripts anywhere you please lol...

To add in the ability for SE Friendly's with shorturls, while you're in your httpd.conf find any "AllowOverride" lines and update the value to "All" (hey, it's your VPS, I'm SURE you trust every hosted site's owner), then just edit your .htaccess in your web root and add in "AcceptPathInfo On".

Mmmm, sweet VPS...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 55
M
journeyman
journeyman
M Offline
Joined: Dec 2003
Posts: 55
Found it <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

In your .htaccess file add:

AddHandler cgi-script cgi


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 570 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)