Re: question about Apache



On 13:39 Fri 29 Feb , Scott Berry wrote:
Hi Derek,

Almost got it. In this VirtualHost though I am getting asked for more info
does this need to be an alias to moin's cgi file? What I am trying to
accomplish here is when you type www.blindscanner.dyndns.org you get the
Moin Moin page. Here is the sample of the VirtualHost it doesn't like.

<VirtualHost>
ServerName: www.blindscanner.dyndns.org
DocumentRoot /usr/share/moin/server/moin.cgi
</VirtualHost>


There's a few things in the above. First, lose the : after ServerName.
Also the www. before the domain

DocumentRoot should be a directory not a file

Below is a sample from one of mine (names changed to protect the
incontinent)

<VirtualHost *:80>
ServerName myserver.me.uk
ServerAlias www.myserver.me.uk
DocumentRoot /var/www/server

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


</VirtualHost>

--
Regards, Joe

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: mod_proxy on apache2
    ... > ServerName a.b.edu ... IANAAE, but in <VirtualHost>, you can add a DocumentRoot directive, ... I haven't used rewrite, but it would seem logical to be able to put ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Virtual hosts in Apache (URGENT)
    ... You can't use "<Virtualhost *>". ... On Sun, 21 Sep 2003, Lorenzo Prince wrote: ... > ServerName prince.homelinux.org ... > NameVirtualHost address is not supported, ...
    (RedHat)
  • Re: httpd.conf problem
    ... > today and as of now my virtual server setting aren't good anymore. ... > # Almost any Apache directive may go into a VirtualHost container. ... > ServerName forum.lmv-clan.nl ... notice the change in the ServerName and ServerAlias directives. ...
    (Fedora)
  • Re: Apache Virtualhost Config
    ... Here is my virtualhost: ... DirectoryIndex index.php index.html ... When using virtual hosts, you must make all hosts, even the default one into a virtual hosts. ... This will not affect your problem, but you don't use ServerAlias for the name you used for ServerName. ...
    (alt.php)
  • Re: apache virtual host problem
    ... <VirtualHost 192.168.0.105> ... One only needs NameVirtualHost to specify an IP if you have multiple ... ServerName example.org ... That's bad :-) You want the ServerName directives for each virtual host ...
    (Ubuntu)