Forum Moderators: phranque

Message Too Old, No Replies

Trying to alias directory paths?

         

jjohnstn

10:54 pm on Apr 21, 2004 (gmt 0)

10+ Year Member



I'm in the process of switching from a shared FreeBSD server to a dedicated RedHat server running Plesk v7.02 control panel. I have many PHP and perl scripts that use the server path to files and directories. Since the paths differ between servers I would like to set up aliases to prevent having to go in and change the scripts.

For example I would need any reference to /usr/local/etc/httpd/cgi-bin/ in a PHP or Perl script to point to /home/httpd/vhosts/domain.com/cgi-bin/

I believe this could have been done on the old server by putting either an Alias or ScriptAlias directive in the httpd.conf. But on the new server I have an /etc/httpd/conf/httpd.conf, plus an httpd.include and vhost.conf for each domain in the /home/httpd/vhosts/domain.com/conf/ directory.

What code should go in which file? I've tried several combinations and can't get them to work....

jdMorgan

3:06 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has anybody got some advice for jjohnstn?

<bump>

Jim