Server?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Server?

Postby DorothyH » 02. March 2007 15:29

Hello--

The XAMPP package would not be appropriate for a Tiger Server, correct? On my server, users post webpages from their home directories. Using XAMPP, Apache will only serve from the root directory. Do I understand this correctly?

Thank you!
Dorothy H
DorothyH
 
Posts: 7
Joined: 01. March 2007 22:12

Postby Kristian Marcroft » 04. March 2007 23:11

Dear Sir,

this is not correct.
You may also use mod_userdir which is actually activated by default if I remember correct to achieve what you want.

Regards,
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby DorothyH » 05. March 2007 22:04

Kristian Marcroft wrote:Dear Sir,

this is not correct.
You may also use mod_userdir which is actually activated by default if I remember correct to achieve what you want.


Thank you, Kristian for your reply.
I don't know much Unix. I looked in the Apache manual. By default,

UserDir public_html
I think I must edit so that
UserDir Sites

My problem is that I don't know which file to edit, or where it is. Can you tell me which file to edit?

Regards,
Dorothy
DorothyH
 
Posts: 7
Joined: 01. March 2007 22:12

Postby Kristian Marcroft » 05. March 2007 22:47

Hi,

I'm afarid I can not.
All you need to do is search in the etc folder though.
Thats where all configuration files are located.

Regards,
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby DorothyH » 06. March 2007 16:10

I successfully used the information in the next post.
Dorothy
Last edited by DorothyH on 09. March 2007 16:51, edited 1 time in total.
DorothyH
 
Posts: 7
Joined: 01. March 2007 22:12

Serving from Home Directories (MacOSX)

Postby DorothyH » 08. March 2007 17:47

Kristian -

I have been successful in allowing users to serve from home directories using
mod_userdir

Here is how I did it. I hope this will help someone. Thank you.
Regards,
Dorothy

In file /Applications/xampp/etc/httpd.config

Uncomment this line which begins with Include like so:

# User home directories
Include /Applications/xampp/etc/extra/httpd-userdir.conf


After the </Directory> for the box that begins with
"<Directory "/Applications/xampp/xamppfiles/htdocs">"Add these lines:

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.so>
UserDir Sites
</IfModule>

In file /Applications/xampp/etc/extra/httpd-userdir.config the file should read

# Settings for user home directories
#
# Required module: mod_userdir

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir Sites

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /Users/*/Sites>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>







DorothyH
 
Posts: 7
Joined: 01. March 2007 22:12


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 5 guests