You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jos Chrispijn <ap...@cloudzeeland.nl> on 2019/11/18 19:27:07 UTC

[users@httpd] Page display on default html page

I have created a default html site that is displayed when visitors typed 
in a domain that I own, but for which I haven't yet created a website for.

As this default site has a domain name that is not the name that a 
visitor typed in, I would like to disply that domain name on its index 
page like

'You requested'

www.adomain.com

'but unfortunately it doesn't have a site page yet'

Can someone tell me how I can do something like this without java script?

Thanks!
Jos


Re: [users@httpd] Page display on default html page

Posted by Jos Chrispijn <ap...@cloudzeeland.nl>.
On 18-11-19 21:24, Anil Kumar P wrote:

> You can use SSI for this.

Thanks, that works!

Best, Jos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Page display on default html page

Posted by Anil Kumar P <na...@gmail.com>.
You can use SSI for this.

Enable Includes with below:
Options +Includes

File types to be parsed for SSI directives with below:
AddType text/html .html
AddOutputFilter INCLUDES .html

Finally use below SSI include on index page:
<!—#echo var=“REMOTE_HOST” —>

Thanks,
Anil

> On Nov 18, 2019, at 1:27 PM, Jos Chrispijn <ap...@cloudzeeland.nl> wrote:
> 
> 
> I have created a default html site that is displayed when visitors typed in a domain that I own, but for which I haven't yet created a website for.
> 
> As this default site has a domain name that is not the name that a visitor typed in, I would like to disply that domain name on its index page like 
> 
> 'You requested'
> 
> www.adomain.com
> 
> 'but unfortunately it doesn't have a site page yet'
> 
> Can someone tell me how I can do something like this without java script?
> 
> Thanks!
> Jos

[users@httpd] Re: Page display on default html page

Posted by Good Guy <xf...@hotmail.com>.
On 18/11/2019 19:27, Jos Chrispijn wrote:
>
> I have created a default html site that is displayed when visitors 
> typed in a domain that I own, but for which I haven't yet created a 
> website for.
>
> As this default site has a domain name that is not the name that a 
> visitor typed in, I would like to disply that domain name on its index 
> page like
>
> 'You requested'
>
> www.adomain.com
>
> 'but unfortunately it doesn't have a site page yet'
>
> Can someone tell me how I can do something like this without java script?
>
> Thanks!
> Jos
>

Why don't you just create a simple page for that domain and host it free 
of charge on netlify, github-pages, firebase.google.com, Azure or AWS 
and point your dns to that page.  This will solve your problem and when 
you are ready to host your own webserver then you can repoint to your 
own webserver.

Did you know you can rent the server on Google Cloud or Microsoft Azure 
or AWS for few pennies per month.  They look after the server and you 
look after the management side of it.  IOW you control the server but 
hardware is provided by them.

Before anybody asks further, yes you can run Apache/Linux/MySQL on 
Microsoft or Google or AWS.  People should try it for free as they allow 
sandbox for trials and for learning purposes.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org