Configuration Question

This is a discussion on Configuration Question within the Apache forums in Application Servers & Tools category; Hello, I'm having a configuration issue. I want to put a directory called "www" under a project directory. The "www" directory is where the php code will go. I've found the UserDir directive that will allow creating that under /home/username, but I haven't found one like the one I want. Is there a directive for this? Thank you, Carol Walter --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-15-2008, 04:45 PM
Carol Walter
Guest
 
Default Configuration Question

Hello,

I'm having a configuration issue. I want to put a directory called
"www" under a project directory. The "www" directory is where the
php code will go. I've found the UserDir directive that will allow
creating that under /home/username, but I haven't found one like the
one I want. Is there a directive for this?

Thank you,

Carol Walter

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #2  
Old 09-16-2008, 12:50 PM
Justin Pasher
Guest
 
Default Re: Configuration Question

Carol Walter wrote:
> Hello,
>
> I'm having a configuration issue. I want to put a directory called
> "www" under a project directory. The "www" directory is where the php
> code will go. I've found the UserDir directive that will allow
> creating that under /home/username, but I haven't found one like the
> one I want. Is there a directive for this?
>
> Thank you,


Your question is a little unclear. Do you want the "www" directory to be
treated as the user's document root (such that
http://hostname/~username/ points to the www directory)? If so, then you
simply need to set the UserDir directive accordingly based upon your
home directory structure. Otherwise, please explain what you are trying
to do a little more.


--
Justin Pasher

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #3  
Old 09-17-2008, 08:57 AM
Carol Walter
Guest
 
Default Re: Configuration Question

I am talking about the document root. I'm sorry it was unclear. I'm
a newby. =) I guess my real question is, does it have to be a user
in /home/username on a Unix system? I'll have only one user - the
app user.

Carol

On Sep 16, 2008, at 12:50 PM, Justin Pasher wrote:

> Carol Walter wrote:
>> Hello,
>>
>> I'm having a configuration issue. I want to put a directory
>> called "www" under a project directory. The "www" directory is
>> where the php code will go. I've found the UserDir directive that
>> will allow creating that under /home/username, but I haven't found
>> one like the one I want. Is there a directive for this?
>>
>> Thank you,

>
> Your question is a little unclear. Do you want the "www" directory
> to be treated as the user's document root (such that http://
> hostname/~username/ points to the www directory)? If so, then you
> simply need to set the UserDir directive accordingly based upon
> your home directory structure. Otherwise, please explain what you
> are trying to do a little more.
>
>
> --
> Justin Pasher
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #4  
Old 09-17-2008, 10:38 AM
Justin Pasher
Guest
 
Default Re: Configuration Question

Carol Walter wrote:
> I am talking about the document root. I'm sorry it was unclear. I'm
> a newby. =) I guess my real question is, does it have to be a user
> in /home/username on a Unix system? I'll have only one user - the app
> user.
>
> Carol


If you are talking about the global DocumentRoot setting in the Apache
config, then that directory can be anything you want it to be. Usually
people have it set to something like /var/www, but the default depends
on your distribution. After setting the DocumentRoot accordingly, you
can put files in that directory and they will be accessible when you
access the server via IP address or domain name that points to that IP
address.

http://1.2.3.4/ -> pulls from -> /var/www (DocumentRoot directive)

If you want people to be able to host files in their home directory,
this is where the UserDir directive comes into play. This is most
commonly set to public_html. The files will be pulled like so...

http://1.2.3.4/~username/ -> pulls from ->
/home/username/public_html (UserDir directive)


--
Justin Pasher

> On Sep 16, 2008, at 12:50 PM, Justin Pasher wrote:
>> Carol Walter wrote:
>>> Hello,
>>>
>>> I'm having a configuration issue. I want to put a directory called
>>> "www" under a project directory. The "www" directory is where the
>>> php code will go. I've found the UserDir directive that will allow
>>> creating that under /home/username, but I haven't found one like the
>>> one I want. Is there a directive for this?
>>>
>>> Thank you,

>>
>> Your question is a little unclear. Do you want the "www" directory to
>> be treated as the user's document root (such that
>> http://hostname/~username/ points to the www directory)? If so, then
>> you simply need to set the UserDir directive accordingly based upon
>> your home directory structure. Otherwise, please explain what you are
>> trying to do a little more.
>>
>>
>> --
>> Justin Pasher


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #5  
Old 09-17-2008, 12:59 PM
Carol Walter
Guest
 
Default Re: Configuration Question

Justin,

Thank you very much. That is exactly what I needed to know. I'm
glad you answer was more succinct that my question!

Carol
On Sep 17, 2008, at 10:38 AM, Justin Pasher wrote:

> Carol Walter wrote:
>> I am talking about the document root. I'm sorry it was unclear.
>> I'm a newby. =) I guess my real question is, does it have to be
>> a user in /home/username on a Unix system? I'll have only one
>> user - the app user.
>>
>> Carol

>
> If you are talking about the global DocumentRoot setting in the
> Apache config, then that directory can be anything you want it to
> be. Usually people have it set to something like /var/www, but the
> default depends on your distribution. After setting the
> DocumentRoot accordingly, you can put files in that directory and
> they will be accessible when you access the server via IP address
> or domain name that points to that IP address.
>
> http://1.2.3.4/ -> pulls from -> /var/www (DocumentRoot
> directive)
>
> If you want people to be able to host files in their home
> directory, this is where the UserDir directive comes into play.
> This is most commonly set to public_html. The files will be pulled
> like so...
>
> http://1.2.3.4/~username/ -> pulls from -> /home/username/
> public_html (UserDir directive)
>
>
> --
> Justin Pasher
>
>> On Sep 16, 2008, at 12:50 PM, Justin Pasher wrote:
>>> Carol Walter wrote:
>>>> Hello,
>>>>
>>>> I'm having a configuration issue. I want to put a directory
>>>> called "www" under a project directory. The "www" directory is
>>>> where the php code will go. I've found the UserDir directive
>>>> that will allow creating that under /home/username, but I
>>>> haven't found one like the one I want. Is there a directive for
>>>> this?
>>>>
>>>> Thank you,
>>>
>>> Your question is a little unclear. Do you want the "www"
>>> directory to be treated as the user's document root (such that
>>> http://hostname/~username/ points to the www directory)? If so,
>>> then you simply need to set the UserDir directive accordingly
>>> based upon your home directory structure. Otherwise, please
>>> explain what you are trying to do a little more.
>>>
>>>
>>> --
>>> Justin Pasher

>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.