HomeDistributionsSecurityCryptographyGamesFAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 11-08-2010, 10:54 AM
Zachary Uram
Default cgi-bin works with IP but not domain name

I have various name based virtual hosts setup. They all work fine.
However if I try to run a script in /usr/lib/cgi-bin it fails when I
specify the domain name, but works if I specify my IP name (this is a

So this,, works

But this, http://www.oggthebase.org/cgi-bin/awstats.pl, gives error
"Oops! This link appears to be broken."

I'm running apache 2.2.16-3.

Here is my /etc/apache2/sites-available/default:


DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128


Here is the contents of my /etc/apache2/sites-available/:

darcs default gytha default-ssl jesujuva.org oggthebase.org

Here is my /etc/apache2/sites-available/oggthebase.org:

ServerAdmin root@oggthebase.org
ServerName oggthebase.org
ServerAlias www.oggthebase.org
DocumentRoot /var/www/oggthebase.org/
ErrorLog /var/www/oggthebase.org/logs/error.log
CustomLog /var/www/oggthebase.org/logs/access.log combined

I'd really appreciate any help in solving this.


<>< http://www.fidei.org ><>

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=bp-=qHsHFUTba9E6TbVHLSo80kfcgHK2gaJGZ@mail.gmail.com" >http://lists.debian.org/AANLkTi=bp-=qHsHFUTba9E6TbVHLSo80kfcgHK2gaJGZ@mail.gmail.com

Thread Tools

All times are GMT. The time now is 02:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org