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]

 



Am 23. Februar 2018 10:08:34 nachm. schrieb Kent West <westk@xxxxxxx>:

> On Fri, Feb 23, 2018 at 2:55 PM, TG Servers <srvrs@xxxxxxxxxxxx> wrote:
>
>> Am 23. Februar 2018 9:34:23 nachm. schrieb Kent West <westk@acuedu>:
>>
>> > On Fri, Feb 23, 2018 at 9:26 AM, mlrx <mlrx@18informatiquecom> wrote:
>> >
>> >> 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
>> >>
>> >
>> > So I did:
>> >
>> > cp /etc/apache2/sites-available/sitename.org
>> /etc/apache2/sites-available/
>> > beta.sitename.org
>> >
>> > Then edited the beta.sitename.org, changing the "DirectoryIndex
>> index.html"
>> > to "DirectoryIndex index.php", and changing "ServerName sitename.org" to
>> > "ServerName beta.sitename.org".
>> >
>> > Then I created the symlink ("a2ensite beta.sitename.org").
>> >
>> > Then I restarted Apache2 ("systemctl restart apache2").
>> >
>> > Now when I web-browse to "sitename.org" I get the .html file as
>> expected,
>> > but when I browse to "beta.sitename.org" I get "Hmm. We're having
>> trouble
>> > finding that site."
>> >
>> >
>>
>> Did you make a DNS entry for beta.sitename.org in your DNS zone file??
>>
>> Tom
>>
>>
>>
> Oh-h-h... You think I have access to make DNS changes.
>
> No. Looks like this route is a no-go then?
>
>

I am afraid you cannot do that then. If you have no DNS entry for beta.sitename.org no browser no nothing knows how to resolve this... it's a subdomain... did not read everything but you can edit apache conf and cannot edit DNS entries??


>
> --
> Kent West                    <")))><
> Westing Peacefully - http://kentwest.blogspot.com


[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