LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2011, 04:49 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
Apache Error


Hello,

We are using Apache web server version2.2 on SLES 10 Linux.
So far our home directories were /home/<usersname> & /home1/<username> so it used to match with the regular expression "/home*/*/public_html"
defined in mod_userdir.conf file.

But now we have introduced one more home directory as /home/basic/<username>.
Now the question is how to define the regular expression to include all the types of home directories ?

I tried to include one more level in /home*/*/public_html as /home*/*/*/public_html. This works fine for new types of home directories.
But it has now stopped working for older home directories . i.e. /home/<usersname> , becauze of the extra /* level.

So in short what we are looking for is the correct regular expression maching both old and new home directories.

I hope i made all clear. Please let me know if you require anymore information.

Thanx,
Admin
 
Old 01-10-2011, 07:35 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

In apache-2.2, you can have multiple directories in UserDir, like:
Code:
UserDir public_html /home1/*/public_html /home/basic/*/public_html
Then you can use a DirectoryMatch:
Code:
<DirectoryMatch ^/home(.*)/public_html>
Allow from all
...
</DirectoryMatch>
Regards
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to start apache on CentOS Linux with error Starting httpd: Syntax error on lin pkumar2533 Linux - Newbie 9 08-26-2009 07:48 AM
Apache Error 403 - CentOS 5.2 with Apache 2.2.3 gordymann Linux - Newbie 2 04-08-2009 08:57 AM
apache 1.3.27, https url returns error -12263 in Firefox, fatal error (40) in Opera leo22838 Linux - Server 0 04-04-2008 01:51 PM
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM
Apache Error idot Linux - Software 2 03-18-2005 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:30 PM.

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