I have a webserver running apache, using Virtual Hosts I have multiple websites/multiple domains running under
One of the websites has an admin function under the folder /stuff
so if I go to www.domain.com/stuff it appears.
I want to hive of stuff from a folder on one domain, to a subdomain stuff.domain.com, if I create another entry in virtual hosts file but point the directory to
would that work?
Something like this?
Code:
/var/www/<domainname>/html/.... /var/www/<domainname2>/html/.... /var/www/<domainname3>/html/....
Code:
/var/www/<domainname>/html/stuff
I want to hive of stuff from a folder on one domain, to a subdomain stuff.domain.com, if I create another entry in virtual hosts file but point the directory to
Code:
/var/www/<domainname>/html/stuff
Something like this?
Code:
<VirtualHost *:80> ServerAdmin [email protected] ServerName domain.com ServerAlias www.domain.com DocumentRoot /var/www/domain.com/html/ ErrorLog ${APACHE_LOG_DIR}/domain.com-error.log CustomLog ${APACHE_LOG_DIR}/domain.com-access.log combined </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] ServerName sub.domain.com ServerAlias www.sub.domain.com DocumentRoot /var/www/domain.com/html/stuff ErrorLog ${APACHE_LOG_DIR}/sub.domain.com-error.log CustomLog ${APACHE_LOG_DIR}/sub.domain.com-access.log combined </VirtualHost>
Comment