Solved

Apache 2 folder url direction

Posted on 2012-03-21
1
182 Views
Last Modified: 2012-03-25
I have apache2 installed and in my config I have the following.


<VirtualHost *:80>
   DocumentRoot "/home/abcx/public_html/uploads/"
   ServerName www.abc.com
   ServerAlias abc.com
</VirtualHost>


I want to point instead of www. I want to use uploads.abc.com  When I do this it points to the default install of the apache which is in /var/www/ and not point the site to the document root above.

What do I have to do to use the uploads.abc.com and point to the document root above?
0
Comment
Question by:ITCity
1 Comment
 
LVL 12

Accepted Solution

by:
larsrohr earned 500 total points
ID: 37751037
You can list multiple ServerAlias names, e.g.
  ServerAlias abc.com uploads.abc.com
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question