Linux Archive

Linux Archive (
-   Debian User (
-   -   cgi-bin works with IP but not domain name (

Zachary Uram 11-08-2010 09:54 AM

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,, 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

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

DocumentRoot /var/www/
ErrorLog /var/www/
CustomLog /var/www/ combined

I'd really appreciate any help in solving this.


<>< ><>

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive:" >

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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.