Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about moving cgi-bin to RAM disk

Status
Not open for further replies.

zallen

Programmer
Aug 10, 2000
227
CN
Hi,friends
I have installed Apache on windows NT.The directory structure is :
c:\www ; |_cgi-bin
|_images
|....
Now i want to move cgi-bin to a RAM disk(z:\cgi-bin) to improve performance.Please tell me how to configure the httpd.conf to get it.

Any suggestions are appreciated!
zallen@cmmail.com
Long live of freedom!
 
It is a big job to change all references to the cgi-bin root and folder.
In linux i can use symbol link to avoid it:
#cd /www
#ln -s /mnt/z/cgi-bin cgi-bin
where,the /mnt/z is the mounting point of RAM disk(/dev/ram).

But in windows it seems that the shortcut can only refer to file not directory1

Regards! zallen@cmmail.com
Long live of freedom!
 
this isn;t a problem. usually there is only one reference per cgi-bin folder per server.

all u have to do is change this under windows

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache//cgi-bin/" to whatever u like e.g. z:\cgi, and the cgi scrits will run from the url. ensure u update the perl path at the start of your scripts for the new environment
 
Thanks!
If i move more folders to RAM disk besides cgi-bin,can i use more ScriptAlias ?
ScriptAlias /cgi-bin/ "z:/cgi-bin"
ScriptAlias /image/ "z:/image"
.......

Regards! zallen@cmmail.com
Long live of freedom!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top