disable /config redirect to :2222

snaaps

Verified User
Joined
Jan 29, 2005
Messages
226
Location
Netherlands
Hello,

How can I disable the redirect /config to port 2222 fort one user?

I have tried to add:
ScriptAlias /config/ /home/user/domains/domain.com/public_html/config/
to the user httpd.conf

But these gives a 500 error:
Directory index forbidden by rule: /home/user/domains/domain.com/public_html/config
 
Last edited:
Here are the steps.

1)Login to your direct admin control panel
2)In the admin level click on file editor
3)Choose the file /etc/httpd/conf/httpd.conf and click on show file
4)Search for the line #Start DirectAdmin Settings
5)Delete the line Alias /config /var/www/html/redirect.php next to it
5)Save the file and restart

That it. If you want to do it for only one user please login into ssh and edit the individual users httpd.conf file with the same procedure.
 
If you want to do it for only one user please login into ssh and edit the individual users httpd.conf file with the same procedure.

Actually there are no such alias-definitions in the per-user httpd.conf. I find it a little bit annoying that these global aliases can't be easily overridden, and seing as /config is a fairly common directory for lots of applications, they are inaccessible due to the alias defined by DirectAdmin.

It would be alot easier if the global alias would be automatically overridden by any *real* directories or user-defined aliases, but not sure how to achive that.

For now, for me, it seems I'll remove the /config-alias entirely. I wasn't aware that it was there until I had problems, and from what I can see, it won't break anything if I remove it.
 
2015, it is now in /etc/httpd/conf/extra/httpd-alias.conf
not accesible from file editor :-(
 
Back
Top