Re: Apache virtualhost order deny, allow works only on localhost; ignores public IP for allow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, there are two clients in this thread, 1 is the client on the server console and is my personal linux system which is on the Internet. The /etc/hosts file on the server has an entry so that the alias in the vhost block resolves when testing on the server. Are you saying I need to edit the /etc/hosts file on my linux pc?


On Tue, Jun 25, 2013 at 11:06 AM, Eric Covener <covener@xxxxxxxxx> wrote:
On Tue, Jun 25, 2013 at 11:01 AM, Kirk Woellert <kdwoell@xxxxxxxxx> wrote:
> It's a good point but I need to able to access this site from one public IP
> in particular. I thought an entry in /etc/hosts currently as:
>
> 127.0.0.1 [redacted alias for 3rd vhost]
>
> would be sufficient but maybe not? If not, how can I get Apache to 'route'
> to that 3rd vhost? What would people typically do in this case? BTW, I'm not
> the DNS manager and won't get a FQDN for this stage of development.
>

You can use an IP as a ServerName or ServerAlias. Otherwise, You need
the /etc/hosts entry on the client, and you need to actually use the
name in the browser -- otherwise the client cannot telegraph to Apache
which name-based virtual host it's accessing.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux