Apache - do not allow access via servername, only alias
Posted by: gnussbaum (---.dia.static.qwest.net)
Date: March 01, 2017 09:58PM

I'm looking for a way to access my server by [alias.example.com] and deny access to [servername.domain.com]. Is this possible? I can already get to the alias successfully but want to block it from the actual server FQDN access

Options: ReplyQuote
Re: Apache - do not allow access via servername, only alias
Posted by: RiggsFolly (Moderator)
Date: March 01, 2017 10:57PM

Hi

Do you really mean ALIAS or are you talking about a SUBDOMAIN?

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote
Re: Apache - do not allow access via servername, only alias
Posted by: gnussbaum (---.dia.static.qwest.net)
Date: March 02, 2017 03:46PM

Hi RiggsFolly,

I think it's alias. It's set up like this:

server.domain.com

alias.domain.net

Where the domain names are actually different. We own multiple domain names and this server is domain joined to "domain.com" but the DNS suffix is set to "domain.net" manually. The URL of [server.domain.com] still comes up, which I don't want. Just the [alias.domain.net].

Options: ReplyQuote


Sorry, only registered users may post in this forum.