Re: Page display on default html page

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

 



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 <apache@xxxxxxxxxxxxxxx> 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 _javascript_?

Thanks!
Jos


[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