Difference between revisions of "Web Server"
From LUDD - Luleå Academic Computer Society
(Created page with "Ludd's '''web server''' is one of the services most used by our members. It currently supports: * mod_perl * mod_php * mod_python * <s>mod_ruby</s> passenger (Ruby on Rails) * ...")
Revision as of 04:53, 20 November 2011
Ludd's web server is one of the services most used by our members. It currently supports:
mod_rubypassenger (Ruby on Rails)
Using the web server
Note: This article will not explain how to build a website. It will only explain the technicalities of serving said pages.
In order to make your pages accessible to the internet, put them in:
In order to use Perl, PHP, Python or Ruby, simply append the proper suffix to the files.
In order to use CGI, hashbang them properly, append .cgi and put them in
(If you don't know what this means, you probably shouldn't use them).
We provide statistics for each users homepage, please logon to Awstats.
If you need to look at the logs from the server, they can be found in:
The webserver is using a reverse proxy to give each user his own virtual host. However many PHP web applications doesn't handle this very well. So for PHP we have changed some server variables to handle this fact. If you see references to <username>.users.ludd.ltu.se somewhere, this is your private virtual host running behind the reverse proxy.
If you want to know more about how the webserver is configured, drop an email to me, jonas@ludd.
Installation of Drupal needs some changes to work on our server.
Since FollowSymlinks doesn't work in .htaccess files, it needs to be removed from drupal-6.9/.htaccess. The rewrite rules also needs updating. Change USERNAME with your uid and drupal-6.9 where you have installed Drupal.
RewriteBase /~USERNAME RewriteRule ^(.*)$ /~USERNAME/drupal-6.9/index.php?q=$1 [L,QSA]
Drupal also creates a .htaccess file in drupal-6.9/sites/default/files/.htaccess. You need to remove the line Options +FollowSymlinks.