LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-22-2008, 10:03 AM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
Exclamation apache and cgi VirtualHosts


I'm building a site with drupal and it has going to have some parts , separeted virtualhosts , where there is a web interface to send emails with mixmaster and an another one to read usenet news . I never worked with cgi and i have few questions . That's how i configured my virtualhost :
Code:
NameVirtualHost *:443
<VirtualHost *:443>
        ServerAdmin admin@localhost
        ServerName  mixmaster
        ServerAlias mixmaster
        DocumentRoot /home/mix/mixmaster/cgi-bin/
        <Directory />
                Options None
                AllowOverride None
        </Directory>
        <Directory /home/mix/mixmaster/cgi-bin/>
                Options ExecCGI
                AllowOverride None
                AddHandler cgi-script cgi pl
                DirectoryIndex mixemail-send.cgi  mixemail-user.cgi  mixnews-send.cgi  mixnews-user.cgi
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /var/log/apache2/mix.error.log

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

        CustomLog /var/log/apache2/mix.access.log combined
        ServerSignature Off
        ScriptAlias /cgi-bin/ "/home/mix/mixmaster/cgi-bin/"
        # SSL
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/cert.pem
        SSLCertificateKeyFile /etc/apache2/ssl/key.pem
        SSLVerifyClient none
        SSLCipherSuite HIGH:MEDIUM
</VirtualHost>
How do i configure the virtualhost DocumentRoot ?
In directoryIndex i included all the cgi scrits in /cgi-bin/
But when i connect the browser says i'm not alloweb to view the resource and is this the way to configure a site based on cgi ??
Thanks !!!!

Last edited by gabsik; 10-22-2008 at 10:05 AM.
 
Old 10-23-2008, 04:20 AM   #2
Yaniv-Fer
Member
 
Registered: Feb 2006
Distribution: Fedora,Solaris
Posts: 46

Rep: Reputation: 15
Hello gabsik


the DocumentRoot should be readable for the user that is trying to access it... like apache user...

i do not know y you use this path
"DocumentRoot /home/mix/mixmaster/cgi-bin/"

i would avoid this...

try to stay at /var/www/.... if you can...
this should also solve permission problems...



good luck
Yaniv Ferszt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically virtualhosts under Apache Chrizzieej Linux - Server 2 03-23-2008 03:17 AM
Apache Virtualhosts and subdomains arew264 Linux - Networking 1 01-03-2006 08:53 AM
Apache VirtualHosts and VSFTPd critical Linux - Software 3 09-14-2005 02:12 PM
VirtualHosts & apache 2.0.48 TiCkO Linux - Networking 2 07-13-2004 03:20 PM
Virtualhosts in apache. where am i going wrong. SSBN Linux - Networking 20 07-11-2003 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration