Comments (6)
Hi! What version of Mercat httpd are you using, a released version or the latest master? I've mostly run GitWeb and fixed some CGI issues surrounding that, see http://git.troglobit.com/
The mail thread you linked to look very interesting, I found the "titan" patches¹ which I'll look into when I find the time. There could definitely be more details to look into. The patch itself is however already applied to Merecat, which leads me back to my first question; what version of Merecat are you using?
__
¹) https://marc.info/?l=thttpd&m=108352795820187&w=2
from merecat.
What version of Mercat httpd are you using, a released version or the latest master?
Latest master, built into a debian package. Its running on armhf.
from merecat.
OK, thanks! I think I've reproduced your problem now. Set up a cgit instance on my own server http://cgit.troglobit.com/ ... I'll look into the details over the weekend.
from merecat.
With the following in my /etc/cgitrc
, a bit of linking+symlinking, and some magic virtual host bind-mounts, I got it working on my Ubuntu server. Note the leading slash in the virtual-root
:*
# cgit config
css=/cgit.css
logo=/cgit.png
# Prepend this to all URLs
virtual-root=/cgit.cgi/
# Home of all GIT repos
scan-path=/srv/git/
# if you do not want that webcrawler (like google) index your site
robots=noindex, nofollow
My /usr/share/cgit
is bind mounted into /var/www/cgit.troglobit.com
and contains the following files (cgit.cgi
is linked from ../../lib/cgit/
):
root@example:/usr/share/cgit# ll
total 1000
drwxr-xr-x 2 root root 4096 Mar 30 11:16 ./
drwxr-xr-x 140 root root 4096 Mar 30 09:39 ../
-rwxr-xr-x 2 root root 986800 Feb 12 2016 cgit.cgi*
-rw-r--r-- 1 root root 13312 Feb 12 2016 cgit.css
-rw-r--r-- 1 root root 1278 Feb 12 2016 cgit.png
-rw-r--r-- 1 root root 1078 Feb 12 2016 favicon.ico
lrwxrwxrwx 1 root root 22 Mar 30 11:16 filters -> ../../lib/cgit/filters/
lrwxrwxrwx 1 root root 8 Mar 30 10:16 index.cgi -> cgit.cgi*
-rw-r--r-- 1 root root 47 Feb 12 2016 robots.txt
from merecat.
Thanks @troglobit. I tried your config but I could not get it working without vhosts. I cannot setup vhosts at this time but I will sooner or later.
from merecat.
Aha, well that could be that you need to use /var/www/cgi-bin/
for all such purposes, or an issue with chrooting.
from merecat.
Related Issues (20)
- Setting environment variable for CGI HOT 3
- help me enable PHP HOT 25
- phpmyadmin in merecat? HOT 4
- Support for proxy-pass
- index.php does not run in subfolders HOT 2
- PHP with method GET does not work HOT 2
- http logging doesn't seem complete, even w/ -l debug HOT 3
- HTTP header line endings HOT 2
- Condition check resulted in Merecat web server being skipped
- build time issues with php support HOT 1
- Re-add thttpd-style logging? HOT 1
- make dist; make check fails: fatal: making test-suite.log: failed to create php.trs HOT 4
- Skip doc installation HOT 3
- mbedtls support? HOT 1
- 2 processes start? HOT 1
- Allow cross origin header HOT 4
- Could not run CGI via merecat.conf HOT 1
- Bug in background HOT 1
- access.log HOT 3
- Performance issues ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merecat.