我尝试创建别名或虚拟主机以不同用户身份运行。下面是 Apachehttpd.conf
无法正常工作的部分。或者,这有可能吗?
<VirtualHost blah:80>
user DifferentUser
group DifferentGroup
ServerAdmin blah
DocumentRoot blah
ServerName blah
ServerAlias blah
ScriptAlias /cgi-bin/ blah
DirectoryIndex index.html index.htm default.htm index.shtml index.php
ErrorLog logs/blah-error_log
CustomLog logs/blah-access_log common
<Directory "/blah/">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride all
Order Deny,Allow
Deny from none
Allow from all
</Directory>
</VirtualHost>
答案1
答案2
这不可能。用户和组指令只能在服务器上下文中设置。