Move cgit to suexec'd as well
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
2e058aef94
commit
c4844d58ed
3 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
#Redirect /cgit/rpms/ /rpms/
|
||||
#Redirect permanent /cgit/ /
|
||||
Alias /cgit-data /usr/share/cgit
|
||||
ScriptAlias /cgit /var/www/cgi-bin/cgit
|
||||
ScriptAlias /cgit /var/www/bin/suexec-cgit.conf
|
||||
<Directory "/usr/share/cgit">
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
|
2
roles/distgit/files/suexec-cgit.sh
Normal file
2
roles/distgit/files/suexec-cgit.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
exec sudo -E -u apache /var/www/cgi-bin/cgit
|
Loading…
Add table
Add a link
Reference in a new issue