changing port 80 and 443

grandm1961

Verified User
Joined
Nov 30, 2020
Messages
84
Location
Wijhe
Hello, I was trying to change the regular ports from 80 to 8080 and 443 to 8443.
i have checked all the conf files like its.conf, http-hosts.conf, http-ssl.conf and https.conf either in etc and in the virtual Directadmin users. the strange thing is that my server itself does work but all the virtual domains don't. And I have verified it a couple of times.

Also, since I doing this at home at my own PC with Directadmin I also changed the ports to the appropriate ports to redirect it too.
Yet, it still won't work, what am I missing????
 
That article is quite old and it does not work as it is said now. Example:
Code:
[root@server2 ~]# chattr +i /etc/httpd/conf/extra/httpd-vhosts.conf
[root@server2 ~]#
and

Code:
[root@server2 ~]# da build rewrite_confs
2026/02/28 19:26:32  info executing task            task=action=rewrite&value=nginx_unit
2026/02/28 19:26:33  info finished task             duration=686.317564ms task=action=rewrite&value=nginx_unit
mv: cannot move '/etc/httpd/conf/extra/tmp.V1trZHqzcX.httpd-vhosts.conf' to '/etc/httpd/conf/extra/httpd-vhosts.conf': Operation not permitted
install_custom_file: failed to rename '/etc/httpd/conf/extra/tmp.V1trZHqzcX.httpd-vhosts.conf' to '/etc/httpd/conf/extra/httpd-vhosts.conf'
failed to rewrite configuration files, please check for errors
[root@server2 ~]#
Please try to avoid using these commands:
Code:
chattr +i httpd-vhosts.conf
chattr +i httpd-ssl.conf
it should be working OK without running them.

If you still need to customize these 2 file:
Code:
[root@server2 ~]# ls -la /usr/local/directadmin/custombuild/configure/openlitespeed/conf/httpd-vhosts.conf
-rw-r--r-- 1 root root 1623 Feb 28 19:28 /usr/local/directadmin/custombuild/configure/openlitespeed/conf/httpd-vhosts.conf
[root@server2 ~]#
[root@server2 ~]# ls -la /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-ssl.conf
-rw-r--r-- 1 root root 12050 Feb 28 19:28 /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-ssl.conf
[root@server2 ~]#
you can copy them into such folder:
Makefile:
mkdir -p /usr/local/directadmin/custombuild/custom/ap2/conf/extra/
cp /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-ssl.conf /usr/local/directadmin/custombuild/custom/ap2/conf/extra/
cp /usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-vhosts.conf /usr/local/directadmin/custombuild/custom/ap2/conf/extra/
then modify the custom files and run this command:
Code:
da build rewrite_confs
 
Back
Top