virtual host single subdomain

tjengbudi

New member
Joined
Jan 13, 2016
Messages
1
hello
i need to change one of my subdomain only
it is hard to maintain.

the problem i want to add sub domain "abc" the location is exactly the same as main domain.
it is req for prestashop media server setting.

when subdomain is created abc will be create and link to ~/public_html/abc/ that i need is ~/public_html

is there any solution for me? if i change the with custom templates, the custom templates for docroot is correct. but when i change the SUB the whole setting broken

is there any solution here?
 
Hello,

First, remove abc subdomain. Care of its data in public_html/abc/

Then setup apache, go to:

Admin Level -> Custom Httpd configurations -> choose your domain

In the top text area, add this *one* line:

Code:
ServerAlias [COLOR=#333333]abc[/COLOR].|DOMAIN|


then click "Save". Since that the subdomain will become an alias for your main domain. And of course make sure to create A-type record for abc in DNS manager.
 
Back
Top