Posted by Benjamin Close on November 24, 2008 under FreeDesktop |
With CGit v0.8 supporting, atom feeds, patch targets and also the clone-url option, it’s time to finally rid ourselves of the memory hungry gitweb. Hence cgit.fd.o has been upgraded and gitweb been pointed to cgit.fd.o. There’s also a bucket load of redirects in place to support this. Hence all the old gitweb url’s should correctly translate into cgit urls.
Read more of this article »
Posted by Benjamin Close on November 8, 2008 under Computers, OpenSource |
Sometimes you want to expose one port in your firewall but not another. However, often you have different servers running on different ports. Apache has the ability to proxy pages, this allows one server to be externally visible with the other running only locally. It allows you to secure one server and only open one port to external attacks. To setup this proxying put the following in your apache config file:
RewriteEngine on
RewriteLog /SOMELOGFILE
RewriteLogLevel 2
RewriteRule ^/(.*)$ http://localhost:8180/$1 [P]
ProxyPassReverse / http://localhost:8180/
The above will proxy the entire domain to the server on the same machine running on port 8180. The [P] tells apache to use the proxy module to do the work. This is not a redirect but a proxy so it hides the internal URL with the external facing one. The ProxyPassReverse directive tells apache to do the rewrite of the URL to remove the localhost:8180 bit back to the originating url
Posted by Benjamin Close on under Computers, OpenSource |
Removing .htaccess Authentication Restrictions
Have you ever found yourself needing to remove authentication from part of a website? This actually happens fairly regularly. The way you do it is as follows:
.htaccess
AuthType none
Satisfy Any
The AuthType none directive indicates apache should not prompt for a password, whilst the Satisfy Any directive tells apache that is can now use other methods to authenticate the user. You may also have to add:
Order Deny, Allow
Allow from All
Which tells apache everyone is allowed to access the page.
Was this helpful?
Throw some money in the tip jar