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.

I have centOS 6.3 machine with ABC server installed on apache.. Now by default to access the server i hav to use url: YYYY.XXXX.com/support/admin but instead i want to to use admin.XXXX.com to access it by redirecting page.. Please tell me how shall i creat page re-directs with httpd configurations?

My by default server is in location:

/var/www/vhosts/YYYY.XXXX.com/support/

Admin folder inside like: YYYY.XXXX.com/support/admin/

My httpd.config file contains:

ServerName YYYY.XXXX.com

<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
 DocumentRoot /var/www/vhosts/YYYY.XXXX.com/
 ServerName YYYY.XXXX.com
 ErrorLog logs/YYYY.XXXX.com-error_log
 CustomLog logs/YYYY.XXXX.com-access_log common
</VirtualHost>
share|improve this question
    
A trace of your attempts would have been nice. –  S19N Aug 18 '12 at 11:02

1 Answer 1

Add "ServerAlias admin.XXXX.com" to your virtual host.

share|improve this answer

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.