Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We would like to move our website to new server.

I created subdomain beta.domain.com which is pointing to our new server with direct admin.

In direct admin I have already setup domain.com account and I want that subdomain beta.domain.com is pointing in the same directory as domain.com.

How could I do this with Direct Admin? Where can I write rules like this? (I am new with direct admin)

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName beta.domain.com
DocumentRoot "/home/domain/public_html"
</VirtualHost>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

According to your example, if you add ServerAlias domain.com to your VirtualHost configuration, the content for both beta.domain.com and domain.com will be served from the directory /home/domain/public_html.

I'm not familiar with DirectAdmin, but when logging into their demo system at http://www.directadmin.com:2222/ with username demo_admin and password demo, it seems you can make custom changes to a domain's Apache configuration by going to "Custom HTTPD Configurations" under "Extra Features" on the main page, then select the domain in question, type in any extra directives you need, and click on Save.

Something like this:

Screenshot

share|improve this answer
    
Great. It was simplier than I thought :) Thanks –  knagode Oct 30 '10 at 18:35
    
For others who encounter this, bear in mind that changes made to the domain via the user account will overwrite these custom modifications. At least that's my understanding, I'm new to DA myself. –  Brian Lacy Jun 28 '11 at 21:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.