LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-13-2014, 05:04 PM   #1
johnnylq
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 example.com/testfolder It will be executed the same as from var/www/example.com/httpdocs/testfolder.

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/example.com/httpdocs/ 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 05:06 PM.
 
Old 09-13-2014, 11:33 PM   #2
ceyx
Member
 
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 :

http://www.server-world.info/en/note...04&p=httpd&f=4
 
  


Reply



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 12:55 AM
[SOLVED] Apache2 Multiple SSL vhost in different vhost files, does not work LBM Linux - Software 2 09-24-2010 06:06 AM
vhost with ProxyHTMLInterp On/Off correct definition of vhost needed tkmsr Linux - Server 0 07-18-2010 02: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 02:14 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 AM.

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