Re: How to browse to index.php OR index.html on WordPress site?

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

 



Le 23/02/2018 à 15:24, Kent West a écrit :
On Fri, Feb 23, 2018 at 1:18 AM, mlrx <mlrx@xxxxxxxxxxxxxxxxxx> wrote:
Hello,

is the simplest way be something like this (?) :

vhost1 : actual WP conf
vhost2 : DocumentRoot = WP directory
          DirectoryIndex index.html

In index.html, the button links to vhost1/index.php.



I apologize for being uneducated about Apache2, but I'm not quite up on
"vhost". Are your lines above something I should put verbatim into my
/etc/apache2/sites-enabled/sitename.conf file, or am I supposed to tailor
them to my specific settings, and if so, I really have no idea how to go
about doing that.

Thanks!

Hello,

vhost = virtual host = 1 web site (short way)
You need one file per vhost in sites-available/

Wath I suggest is to configure -for ex.- :
- vhostA with domain.tld
    DirectoryIndex index.html
- vhostB with sub.domain.tld (actual WP)
    DirectoryIndex index.php

I would like to point a detail:
This directive
    DirectoryIndex index.php index.html
mean
    serve index.php 1st if exists else serve index.html 1st

Am I better for understanding?


Regards,
--
benoist

---------------------------------------------------------------------
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