|
.htaccess и файлы для пользователей
|
|||
---|---|---|---|
#18+
простите, запамятовал что прописать в htaccess для того чтобы для каждого пользователя в папке открывался свой файл. ... |
|||
:
Нравится:
Не нравится:
|
|||
07.10.2004, 09:28 |
|
.htaccess и файлы для пользователей
|
|||
---|---|---|---|
#18+
/manual/urlmapping.html#userUser Directories Traditionally on Unix systems, the home directory of a particular user can be referred to as ~user/. The module mod_userdir extends this idea to the web by allowing files under each user's home directory to be accessed using URLs such as the following. http://www.example.com/~user/file.html For security reasons, it is inappropriate to give direct access to a user's home directory from the web. Therefore, the UserDir directive specifies a directory underneath the user's home directory where web files are located. Using the default setting of Userdir public_html, the above URL maps to a file at a directory like /home/user/public_html/file.html where /home/user/ is the user's home directory as specified in /etc/passwd. There are also several other forms of the Userdir directive which you can use on systems where /etc/passwd does not contain the location of the home directory. Some people find the "~" symbol (which is often encoded on the web as %7e) to be awkward and prefer to use an alternate string to represent user directories. This functionality is not supported by mod_userdir. However, if users' home directories are structured in a regular way, then it is possible to use the AliasMatch directive to achieve the desired effect. For example, to make http://www.example.com/upages/user/file.html map to /home/user/public_html/file.html, use the following AliasMatch directive: AliasMatch ^/upages/([^/]*)/?(.*) /home/$1/public_html/$2 ... |
|||
:
Нравится:
Не нравится:
|
|||
10.10.2004, 02:44 |
|
|
start [/forum/topic.php?fid=23&fpage=500&tid=1479307]: |
0ms |
get settings: |
9ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
41ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 11ms |
total: | 143ms |
0 / 0 |