SID-01811: apache httpd.conf and twiki.conf issue
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
5.10 |
| Category: |
CategoryInstallation |
Server OS: |
RedHat Linux |
Last update: |
10 years ago |
<verbatim>
httpd.conf looks like this:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
# "/var/www/cgi-bin" should be changed to whatever your
ScriptAliased CGI directory exists, if you have that configured.
<Directory "/var/www/cgi-bin">
AllowOverride None
Options
ExecCGI
SetHandler cgi-script Order allow,deny Allow from all
</Directory>
I installed twiki in /var/www/twiki (this is my twiki root directory)
my /etc/httpd/conf.d/twiki.conf looks like this
ScriptAlias /bin "/var/www/twiki/bin"
Alias /pub "/var/www/twiki/pub"
<Directory "/var/www/twiki/bin">
AllowOverride None
Require all granted
Deny from env=blockAccess
Options
ExecCGI FollowSymLinks SetHandler cgi-script
# Password file for TWiki users
AuthUserFile /var/www/twiki/data/.htpasswd
AuthName 'Enter your
WikiName: (First name and last name, no space, no dots, capitalized, e.g.
JohnSmith)'
AuthType Basic
# File to return on access control error (e.g. wrong password)
ErrorDocument 401 /bin/register
</Directory>
What url to use to execute my /var/www/twiki/configure script ??
</verbatim>
--
Kumar Ranjan - 2013-10-24
Discussion and Answer
ScriptAlias /bin "/var/www/twiki/bin" indicates that you should use
http://your.example.com/bin/configure.
I don't recommend using apache login, better to use the template login. If you use apache login make sure to exclude the configure script from = require valid-user=.
Use the
ApacheConfigGenerator to generate twiki.conf for apache.
--
Peter Thoeny - 2013-10-24
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.