What is "My favourites"?
UserDir without the tilde
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > UserDir without the tilde 23 August 2002 16:59:32

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

UserDir without the tilde

Bob Dowling 23 August 2002 16:59:32
 We will be running Apache 1.3.x on a Netware system.

We would like http://server/useri­d/ to match some directory
(currently "www") of userid's home directory. Note that there is no
leading tilde on that URL. We have managed rewrites that put the tildde
in but then any returned redirect (e.g. from a missing trailing /)
exposes the tilde. For example, if a client requests
http://server/useri­d, then the rewrite converts this to
http://server/~user­id, the UserDir module identifies a directory and a
redirect is sent back to http://server/~user­id/. We would want the
redirect to be back to http://server/useri­d/ .

We have not been able to get this to work. Are we missing something
obvious? I've tried googling for this, but it's hard to construct a
query. Or the answer isn't out there.

Thanks in advance.
--
Bob Dowling: UNIX Support, University of Cambridge Computing Service,
rjd4@cam.ac.uk New Museums Site, Pembroke Street, Cambridge, UK. CB2 3QH
+44 1223 334728 http://www-uxsup.cs­x.cam.ac.uk/
--- Those who do not learn from Dilbert are doomed to repeat it. ---

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Joshua Slive 21 August 2002 22:21:50 permanent link ]
 Bob Dowling wrote:> We will be running Apache 1.3.x on a Netware system.>
We would like http://server/useri­d/ to match some directory> (currently "www") of userid's home directory. Note that there is no> leading tilde on that URL. We have managed rewrites that put the tildde> in but then any returned redirect (e.g. from a missing trailing /)> exposes the tilde. For example, if a client requests> http://server/useri­d, then the rewrite converts this to> http://server/~user­id, the UserDir module identifies a directory and a> redirect is sent back to http://server/~user­id/. We would want the> redirect to be back to http://server/useri­d/ .

You need to give more details about what your configuration looks like.
A simple solution to your problem would look somthing like

Alias /userid1 /complete/path/to/u­serid1/public_html
Alias /userid2 /complete/path/to/u­serid2/public_html
etc...

Joshua.



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Bob Dowling 22 August 2002 11:36:10 permanent link ]
 
You need to give more details about what your configuration looks like.

The Apache system is being put together now, so it can look like
whatever it needs to.

We have c. 35,000 registered users which change by a few users daily,
with big 5,000 user changes once a year and medium sized (c. 1,000
users) changes once a quarter. We are using the Novell nwhdir.c module
to extract home directory locations from the NDS.


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Joshua Slive 23 August 2002 16:55:43 permanent link ]
 Bob Dowling wrote:>>You need to give more details about what your configuration looks like.>
The Apache system is being put together now, so it can look like> whatever it needs to.>
We have c. 35,000 registered users which change by a few users daily,> with big 5,000 user changes once a year and medium sized (c. 1,000> users) changes once a quarter. We are using the Novell nwhdir.c module> to extract home directory locations from the NDS.

I don't know anything about nwhdir.c, so I can't help you with that.

But the first thing you need to consider is: do you need to also serve
content from the document root (outside of the home directories)? If
so, how are you going to differentiate between a request for the
document root and a request for the home directories if you don't use
the ~ or any other string?

Joshua.


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Bob Dowling 23 August 2002 16:59:32 permanent link ]
 
But the first thing you need to consider is: do you need to also serve > content from the document root (outside of the home directories)? If > so, how are you going to differentiate between a request for the > document root and a request for the home directories if you don't use > the ~ or any other string?

We hope to use virtual hosting to allocate a server (e.g. users.domain)
that would server users' home pages and nothing else. Hence the desire
to do without a /users/ or ~ prefix or anything like that.

At the moment we have a proxy service rewriting in both directions so
that requests to the service get rewritten into "tilde form" and any
redirections sent back get rewritten into "tildeless form". Messy, but
it works.


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > UserDir without the tilde 23 August 2002 16:59:32

see also:
Import data and changes from access to…
Pasting multiple lines of data into…
sql password with access query
пройди тесты:
see also:
BVHDF
Start calling card business under your…
Hosted VoIPSwitch+Full Control+All…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .