Forum

Alias not working

Fred
16 April 2016, 01:36
Hi Hugo,
I have the following VirtualHost and for some reason the alias redirection is not working.
when I type mydomain.com/fred I get a 404 from the WebsiteRoot .
I do not get redirected to the directory I specified...
Could you please help?
VirtualHost {
Hostname = www.mydomain.com, mydomain.com
EnforceFirstHostname = yes
WebsiteRoot = /www/production/httpdocs
StartFile = index.php
Alias = /fred:/www/development/clients/freddomain
AccessLogfile = /www/production/logs/default.access.log
ErrorLogfile = /www/production/logs/default.error.log
TimeForCGI = 15
UseFastCGI = PHP5-FPM
UseToolkit = wordpress
DenyBody = ^.*%3Cscript.*%3C%2Fscript%3E.*$
ExecuteCGI = yes
#PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
# WrapCGI = jail_mydomaindev
}
Hugo Leisink
16 April 2016, 08:12
Does the directory /www/development/clients/freddomain exist and does it contain a index.php file?
Fred
16 April 2016, 10:50
Hi Hugo,

Tes it does exist and has data in it..
I can access it if I change the WebsiteRoot and comment the Alias
Fred
18 April 2016, 16:05
Hi Hugo,

Could you please help me here.
There is not much that can go wrong with Alias from what I gather but yet I cann get it to redirect me to the choosen directory

Fred
octavhendra
19 April 2016, 00:48
Hi,
As fas as i know you can't make alias and urltookit work together . CMIIW
it is intended behavior as Hugo said in this thread https://www.hiawatha-webserver.org/forum/topic/1492/#7977
Hugo Leisink
19 April 2016, 10:16
Hiawatha looks at aliases after processing the UrlToolkit rules.
octavhendra
19 April 2016, 12:32
Hi Hugo,
Thanks for pointing it out
Fred
20 April 2016, 01:20
Thank you
I'll give that a go tomorrow
This topic has been closed.