Rewrite WEB server configuration files

prosatya

Verified User
Joined
Feb 23, 2021
Messages
7
I'm using WordPress and WPML and Have Multiple Domain Like .NL ,.DE. .EU .FR, I tried to change by [Custom HTTPD Configurations] Not able to replace the previous configuration. this will added multiple time.

Update Software Configuration - Rewrite WEB server configuration files
Rewrites Apache/Nginx WEB server configuration files (useful when configuration got corrupted or needs to be updated).

Where should I write this configuration. So when i make any server change my configuration not lost.

Here is the apache configuration file /usr/local/directadmin/data/users/XXX/httpd.conf

Main Domain - Correct
<VirtualHost >
DocumentRoot /home/dir/domains/domain.nl/public_html
ScriptAlias /cgi-bin/ /home/dir/domains/domain.nl/public_html/cgi-bin/
</VirtualHost>

Language Domain - When setup default
<VirtualHost >
DocumentRoot /home/dir/domains/domain.fr/public_html
ScriptAlias /cgi-bin/ /home/dir/domains/domain.fr/public_html/cgi-bin/
</VirtualHost>

Language Domain Should be
<VirtualHost >
DocumentRoot /home/dir/domains/domain.nl/public_html
ScriptAlias /cgi-bin/ /home/dir/domains/domain.nl/public_html/cgi-bin/
</VirtualHost>

Let me know if you need more info
 

Attachments

  • DirectAdmin-v1-61-5 ---.png
    DirectAdmin-v1-61-5 ---.png
    14.8 KB · Views: 5
Why not use "Domain Pointer" , It's easy function.

so, I will search for you in google,


Go to

http://[domain]:2222/CMD_CUSTOM_HTTPD?domain=[domain]

In the first window, under

Only add the few lines of the VirtualHost you need to insert.
Do not add a whole ..

Add the following line:
Code:
|?DOCROOT=/home/dir/domains/domain.nl/public_html|
On each every language Domain
ScriptAlias will use same variable, Just set only "DOCROOT"
 
Back
Top