Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st April 2007, 16:25
cnocera cnocera is offline
Junior Member
 
Join Date: Apr 2007
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Apache directives with ispconfig

ispconfig sets the directive "ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/" With this directive, Apache will not server any pages (html or scripts) from the cgi-bin directory.

If I manually change ScriptAlias to Alias, everything seems to work. What can I do to fix this?
Reply With Quote
Sponsored Links
  #2  
Old 2nd April 2007, 16:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

You can modify the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd April 2007, 01:41
cnocera cnocera is offline
Junior Member
 
Join Date: Apr 2007
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Falko, thanks for the reply, but what do I need to modify in the function.
Reply With Quote
  #4  
Old 3rd April 2007, 20:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

The line(s) where the ScriptAlias is generated.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd April 2007, 21:08
cnocera cnocera is offline
Junior Member
 
Join Date: Apr 2007
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I am still not understanding what to change. The lines regarding scriptsalias seem to be correct.

$cgi = "";
if($web["web_cgi"] == 1) $cgi = "ScriptAlias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl";
Reply With Quote
  #6  
Old 4th April 2007, 10:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,736
Thanks: 840
Thanked 5,597 Times in 4,408 Posts
Default

Chane:

if($web["web_cgi"] == 1) $cgi = "ScriptAlias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl";

to:
if($web["web_cgi"] == 1) $cgi = "Alias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl";
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
cnocera (6th April 2007), memphis (18th July 2007)
  #7  
Old 6th April 2007, 05:19
cnocera cnocera is offline
Junior Member
 
Join Date: Apr 2007
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Falko, Till,

Thank you very much.

Carl
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache directives fails... gilas Installation/Configuration 2 22nd March 2007 12:45
ISPCONFIG not restarting apache akaiser Installation/Configuration 3 7th January 2007 20:24
Apache Directives vs PHP Safe Mode heri Installation/Configuration 1 11th May 2006 19:07
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16


All times are GMT +2. The time now is 02:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.