On Thu, Dec 16, 2010 at 7:17 AM, Trou Macacq <[email protected]> wrote:
> My setup look like this:
>
> ngnix reverse proxy, port 80 <-> apache daemon running fossil via CGI, port
> 8080
>
> And since fossil sets absolute URL to all resources embedded... the
> people outside have seem my repositories wiki, tickets, and other
> filled with links to localhost:8080
I have the feeling that my setup details might be useful to you.
Currently, I have this:
**
[...@bast-imret ~]$ cat /etc/hosts
127.0.0.1 localhost
127.0.0.101 fossil-corvidae.bast-imret.corvidae.org fossil.corvidae.org
[...@bast-imret ~]$ cat /etc/httpd/vhosts.d/fossil.corvidae.org.conf
<VirtualHost 10.161.30.240:80>
ServerAdmin [email protected]
DocumentRoot /var/www/domains/corvidae.org/fossil/htdocs
RewriteEngine On
RewriteRule ^/$ /index.html [T=text/html]
<Directory "/var/www/domains/corvidae.org/fossil/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess
files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as
to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/domains/corvidae.org/fossil/cgi-bin/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/domains/corvidae.org/fossil/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ServerName fossil.corvidae.org
ErrorLog "|/usr/sbin/cronolog -l
/var/www/domains/corvidae.org/fossil/logs/error_log
/var/www/domains/corvidae.org/fossil/logs/%Y-%m/error_log-%Y-%m-%d"
CustomLog "|/usr/sbin/cronolog -l
/var/www/domains/corvidae.org/fossil/logs/access_log
/var/www/domains/corvidae.org/fossil/logs/%Y-%m/access_log-%Y-%m-%d"
combined
ProxyPass /cgi-bin !
ProxyPass / http://fossil.corvidae.org/
ProxyPassReverse /cgi-bin !
ProxyPassReverse / http://fossil.corvidae.org/
</VirtualHost>
[...@bast-imret ~]$ cat /etc/xinetd.d/fossil-corvidae
service fossil-corvidae
{
socket_type = stream
type = UNLISTED
wait = no
disable = no
user = root
server = /opt/fossil/bin/fossil
server_args = http /opt/fossil/repositories/corvidae.org/fossil
--notfound http://fossil.corvidae.org/cgi-bin/fossil-list-repositories.cgi
bind = fossil-corvidae.bast-imret.corvidae.org
port = 80
}
**
Let me know if this gives you an idea as to how to accomplish what you
want. Granted, I'm not running Fossil as CGI, but it's kind of the
same arrangement as what you have now with nginx reverse proxying back
to Apache/mod_cgi.
Hope this helps,
--
Nathaniel R. Reindl
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users