Forum

Alias doesn't work

Amar
12 April 2012, 18:29
Hello Hugo

This was first time I played with Alias option and I had no luck at all. My Alias directive was something like this

Alias = /test:/var/www/vhosts/user/www/domain.ba/wordpress


When I try to access domain.ba/test I get "Oops it seems link is broken" from chrome, however when I try to access /wordpres it works OK. From logs I figured it out it actualy looks for index.php in domain.ba:

/var/www/vhosts/user/www/domain.ba/index.php|CGI-wrapper: CGI program does not exist


domain.ba directory at that time was empty. However when I created dummy index.php in domain.ba all access to /test finished on that index.php in other words it didn't go to /wordpress. Maybe this is bug, my missconfiguration or something else?



Hiawatha version: 8.1
Operating System: Debian
Hugo Leisink
13 April 2012, 17:28
I see an error message from the CGI-wrapper. Can you show me the configuration? I want to see how you configured it.
Amar
13 April 2012, 19:08
cgi-wrapper.conf ?

Here it is:

CGIhandler = /usr/bin/php-cgi

Wrap = user1; /var/www/vhosts/user1/www ; user1
Wrap = user2; /var/www/vhosts/user2/www ; user2
Wrap = user3; /var/www/vhosts/user3/www ; user3


Alias stuff whas about user3 . domain.ba directory is in his www directory
Hugo Leisink
17 April 2012, 09:05
I actually meant hiawatha.conf. What is the reason for the usage of the cgi-wrapper?
This topic has been closed.