From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] apache - virtual host not working
Date: Mon, 12 Dec 2011 08:01:23 +0100 [thread overview]
Message-ID: <70260554894a190e6ef050966b2c6cdf.squirrel@www.antarean.org> (raw)
In-Reply-To: <20111212062356.GM3810@syscon4.inet>
On Mon, December 12, 2011 7:23 am, Joseph wrote:
> Any any body provide me with hint why my "virtual host" is not working in
> apache?
We'll try :)
> I've copied server config files from one computer to another.
Which config-files?
I think apache uses the following:
/etc/conf.d/apache
/etc/apache/*
And is apache compiled with the same USE-flags on both machines?
> I used "meld" to be sure most changes are accurate but when try to access
> virtual host:
> I get:
> Forbidden
> You don't have permission to access / on this server.
This is either a missing/wrong configuration, or Apache does not have
access to the directory (filesystem permissions)
> I don't know where else to look.
>
> In /etc/hosts I have:
> 127.0.0.1 localhost.localdomain localhost mydomain.ca syscon5
> 10.0.0.100 www.mydomain.ca
>
> If I comment out: #10.0.0.100 www.mydomain.ca
> I can access this domain.
Does it work properly when you comment out this line?
Is the IP-adres correct?
> in: modules.d/00_default_settings.conf
> # We configure the "default" to be a very restrictive set of features.
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> </Directory>
>
> # added below
> <Directory "/var/www/localhost/htdocs">
> AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
>
> <FilesMatch "^\.ht">
> Order allow,deny
> Deny from all
> </FilesMatch>
>
> I don't know where else to look. I can not access virtual domain on port
> 80 nor on 443
There is a different directory where the actual websites are configured:
/etc/apache/vhosts
I am missing this in your email.
> The server is working perfectly on my other computer running the same
> version of apache. As stated earlier I've compare configuration file with
> meld so I'm sure there are no mistakes.
What does apache report in the logs?
/var/log/apache/*
--
Joost
next prev parent reply other threads:[~2011-12-12 7:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 6:23 [gentoo-user] apache - virtual host not working Joseph
2011-12-12 7:01 ` J. Roeleveld [this message]
2011-12-12 7:03 ` Matthew Finkel
2011-12-12 7:12 ` J. Roeleveld
2011-12-12 7:21 ` [gentoo-user] [SOLVED] " Joseph
2011-12-12 7:26 ` J. Roeleveld
2011-12-12 7:56 ` Matthew Finkel
2011-12-12 9:22 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70260554894a190e6ef050966b2c6cdf.squirrel@www.antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox