Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-13-2014, 06:04 PM   #1
LQ Newbie
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
Add additional path to vhost wwwdata

Ubuntu 12.04, running on Apache server. I wonder if that is possible to access from browser html/php file from other than document root location let's say from folder /testfolder on the root

So once I enter in browser It will be executed the same as from var/www/

But files and this folder will be on the root in /testfolder not in document root (httpdocs) I don't want to put this folder physically at all in httpdocs. Goal is to hide those files/folder from default www vhost folder.

Of course files var/www/ will be normally there.

In other words I want to run some folder which is not in logic structure of httpdocs but should be treated like it would be there.

Last edited by johnnylq; 09-13-2014 at 06:06 PM.
Old 09-14-2014, 12:33 AM   #2
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
Indeed you can, though putting some php files on / may not be the best idea.

Do a search on the term "Apache mod_userdir"
and / or look over here :


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the Apache DocumentRoot path to new add additional hardisk piaakit Linux - Server 21 07-16-2012 01:55 AM
[SOLVED] Apache2 Multiple SSL vhost in different vhost files, does not work LBM Linux - Software 2 09-24-2010 07:06 AM
vhost with ProxyHTMLInterp On/Off correct definition of vhost needed tkmsr Linux - Server 0 07-18-2010 03:12 PM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 03:14 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 03:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration