how to delete alias - default template

joel

New member
Joined
Mar 25, 2015
Messages
4
Hello, I want remove/edit alias from template (httpd.conf)
I tried to edit /usr/local/directadmin/data/templates/httpd.conf, and edited this file then
I used this cmd "echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue"
But still it doesn't work, alias works like before, I tried restart httpd but it's still the same.

(Centos 7)

Thanks!
 
thank you for fast reply, and for useful link, but I want delete default link, which is default enabled.
I mean it's
alias /config /var/www/html/redirect
I want to disable this, and custom virtual host can't help me with that.

Joel
 
Joel,

You should in this case copy /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-alias.conf to usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf and remove

Code:
Alias /config "/var/www/html/redirect.php"

from the file, and run:

Code:
[COLOR=#333333]echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
[/COLOR]
 
unfortunately, this solution still doesn't work, this path what you written, doesn't exist but I created this, and still nothing more.
Thank you for reply.
Joel
 
Joel,

How does your /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf look like now?
How does your /etc/httpd/conf/extra/
httpd-alias.conf look like now?
 
Joel,
usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf and remove

Code:
Alias /config "/var/www/html/redirect.php"

This is wrong directory.

How does your /etc/httpd/conf/extra/httpd-alias.conf look like now?

I tried this second, what you written, edited, added to the task and it works! Thank you once again.
Have a nice day,
Joel
 
Back
Top