Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
Almost got it.

After making those changes, I made one more change:

cp /etc/wordpress/config-sitename.org /etc/wordpress/
config-beta.sitename.org
chown www-data:www-date /etc/wordpress/config-beta.sitename.org


But when I go any deeper than the front page, it redirects back to
index.html, just like it did when I did the much simpler "index1.php"
method earlier. Bummer.


On Fri, Feb 23, 2018 at 3:41 PM, Kent West  wrote:

>
>
> On Fri, Feb 23, 2018 at 3:29 PM, TG Servers  wrote:
>
>> Am 23. Februar 2018 10:19:29 nachm. schrieb Kent West :
>>
>> > On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  wrote:
>> >
>> >> 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??
>> >>
>> >>
>> >>
>> > Well, I can on the box (/etc/hosts), but not on the network, at least
>> not
>> > without buying another domain name? But changing it on the box's
>> /etc/hosts
>> > file won't help when I'm browsing in from Topeka or Kalamazoo.
>> >
>> > Unless I'm still fundamentally misunderstanding what I'm supposed to be
>> > doing?
>> >
>>
>> If you own sitename.org already beta.sitename.org is only a subdomain.
>> No need to buy another domain. If you want a completely different domain
>> (change sitename.org to something completely different) you would have
>> to of course.
>> In your DNS zone you just need to make an entry for beta.sitename.org
>> which points to the ip of the server. As just written in the meantime...
>> somebody has to take care of DNS handling
>>
>>
>>
> Ah, so yes, I was still fundamentally misunderstanding what I'm supposed
> to do.
>
> So I've gone to domains.google.com to tinker with my domain name; I've
> added a "Registered host", just be adding a line with the "beta." added to
> the front of the address, and I've added a "Custom resource record", by
> adding a "beta" line.
>
> But I'm still getting a "cannot find" error on the beta site.
>
>
> --
> Kent West<")))><
> Westing Peacefully - http://kentwest.blogspot.com
>



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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 3:29 PM, TG Servers  wrote:

> Am 23. Februar 2018 10:19:29 nachm. schrieb Kent West :
>
> > On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  wrote:
> >
> >> 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??
> >>
> >>
> >>
> > Well, I can on the box (/etc/hosts), but not on the network, at least not
> > without buying another domain name? But changing it on the box's
> /etc/hosts
> > file won't help when I'm browsing in from Topeka or Kalamazoo.
> >
> > Unless I'm still fundamentally misunderstanding what I'm supposed to be
> > doing?
> >
>
> If you own sitename.org already beta.sitename.org is only a subdomain. No
> need to buy another domain. If you want a completely different domain
> (change sitename.org to something completely different) you would have to
> of course.
> In your DNS zone you just need to make an entry for beta.sitename.org
> which points to the ip of the server. As just written in the meantime...
> somebody has to take care of DNS handling
>
>
>
Ah, so yes, I was still fundamentally misunderstanding what I'm supposed to
do.

So I've gone to domains.google.com to tinker with my domain name; I've
added a "Registered host", just be adding a line with the "beta." added to
the front of the address, and I've added a "Custom resource record", by
adding a "beta" line.

But I'm still getting a "cannot find" error on the beta site.


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 3:26 PM, David Copeland 
wrote:

> But the DNS entries for "sitename.org" are maintained somewhere, by
> somebody, just ask them to add the subdomain.
>
>
Ah, yes, I was still fundamentally misunderstanding what I was supposed to
be doing.

So, I went to "google.domains.com" and logged in to tinker with my domain
settings, and now I've added a "Registered host", just by adding the
"beta." to the front of my sitename - same address.

But I'm guessing that's not enough, because I'm still getting a "not found"
error.



>
> On 23/02/18 04:18 PM, Kent West wrote:
>
>
>
> On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  wrote:
>
>> 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??
>>
>>
>>
> Well, I can on the box (/etc/hosts), but not on the network, at least not
> without buying another domain name? But changing it on the box's /etc/hosts
> file won't help when I'm browsing in from Topeka or Kalamazoo.
>
> Unless I'm still fundamentally misunderstanding what I'm supposed to be
> doing?
>
>
> --
> Kent West<")))><
> Westing Peacefully - http://kentwest.blogspot.com
>
>
>
> --
> David Copeland
> JSI Data Systems Limited613-727-9353 <(613)%20727-9353>www.jsidata.ca
>
>


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread TG Servers



Am 23. Februar 2018 10:19:29 nachm. schrieb Kent West :


On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  wrote:


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




Well, I can on the box (/etc/hosts), but not on the network, at least not
without buying another domain name? But changing it on the box's /etc/hosts
file won't help when I'm browsing in from Topeka or Kalamazoo.

Unless I'm still fundamentally misunderstanding what I'm supposed to be
doing?



If you own sitename.org already beta.sitename.org is only a subdomain. No 
need to buy another domain. If you want a completely different domain 
(change sitename.org to something completely different) you would have to 
of course.
In your DNS zone you just need to make an entry for beta.sitename.org which 
points to the ip of the server. As just written in the meantime... somebody 
has to take care of DNS handling




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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread David Copeland
But the DNS entries for "sitename.org" are maintained somewhere, by
somebody, just ask them to add the subdomain.

On 23/02/18 04:18 PM, Kent West wrote:
>
>
> On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  > wrote:
>
> 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??
>
>
>
> Well, I can on the box (/etc/hosts), but not on the network, at least
> not without buying another domain name? But changing it on the box's
> /etc/hosts file won't help when I'm browsing in from Topeka or Kalamazoo.
>
> Unless I'm still fundamentally misunderstanding what I'm supposed to
> be doing?
>
>
> -- 
> Kent West                    <")))><
> Westing Peacefully - http://kentwest.blogspot.com


-- 
David Copeland
JSI Data Systems Limited
613-727-9353
www.jsidata.ca



Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 3:13 PM, TG Servers  wrote:

> 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??
>
>
>
Well, I can on the box (/etc/hosts), but not on the network, at least not
without buying another domain name? But changing it on the box's /etc/hosts
file won't help when I'm browsing in from Topeka or Kalamazoo.

Unless I'm still fundamentally misunderstanding what I'm supposed to be
doing?


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread TG Servers



Am 23. Februar 2018 10:08:34 nachm. schrieb Kent West :


On Fri, Feb 23, 2018 at 2:55 PM, TG Servers  wrote:


Am 23. Februar 2018 9:34:23 nachm. schrieb Kent West :

> On Fri, Feb 23, 2018 at 9:26 AM, mlrx  wrote:
>
>> Le 23/02/2018 à 15:24, Kent West a écrit :
>>
>>> On Fri, Feb 23, 2018 at 1:18 AM, mlrx  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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 2:55 PM, TG Servers  wrote:

> Am 23. Februar 2018 9:34:23 nachm. schrieb Kent West :
>
> > On Fri, Feb 23, 2018 at 9:26 AM, mlrx  wrote:
> >
> >> Le 23/02/2018 à 15:24, Kent West a écrit :
> >>
> >>> On Fri, Feb 23, 2018 at 1:18 AM, mlrx  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?



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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread TG Servers



Am 23. Februar 2018 9:34:23 nachm. schrieb Kent West :


On Fri, Feb 23, 2018 at 9:26 AM, mlrx  wrote:


Le 23/02/2018 à 15:24, Kent West a écrit :


On Fri, Feb 23, 2018 at 1:18 AM, mlrx  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




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?




I think I already understood this, but since I have both files, it only
serves up the first one, every time, which is not what I want.


Thanks!




Regards,

--
benoist

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





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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 9:26 AM, mlrx  wrote:

> Le 23/02/2018 à 15:24, Kent West a écrit :
>
>> On Fri, Feb 23, 2018 at 1:18 AM, mlrx  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."



> 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?
>
>
>
I think I already understood this, but since I have both files, it only
serves up the first one, every time, which is not what I want.


Thanks!



> Regards,
>
> --
> benoist
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread mlrx

Le 23/02/2018 à 15:24, Kent West a écrit :

On Fri, Feb 23, 2018 at 1:18 AM, mlrx  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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-23 Thread Kent West
On Fri, Feb 23, 2018 at 1:18 AM, mlrx  wrote:

> Le 23/02/2018 à 05:14, Kent West a écrit :
>
>> On Thu, Feb 22, 2018 at 9:13 PM, Kent Frazier 
>> wrote:
>>
>> Change the name of index.php to index1.php and access using that name?
>>>
>>>
>> That almost works. It allows me to open the index(1).php home page from my
>> link in index.html, but if I try to go any deeper, it loads the index.html
>> (while, interestingly, having the .php's deeper-level URL in the URL
>> address bar of the web-browser). So apparently, the rest of the .php-based
>> site expects its own index.php file to exist.
>> […]
>>
>
> 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!



> Have a good day,
> --
> benoist
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-22 Thread mlrx

Le 23/02/2018 à 05:14, Kent West a écrit :

On Thu, Feb 22, 2018 at 9:13 PM, Kent Frazier 
wrote:


Change the name of index.php to index1.php and access using that name?



That almost works. It allows me to open the index(1).php home page from my
link in index.html, but if I try to go any deeper, it loads the index.html
(while, interestingly, having the .php's deeper-level URL in the URL
address bar of the web-browser). So apparently, the rest of the .php-based
site expects its own index.php file to exist.
[…]


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.


Have a good day,
--
benoist

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



Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-22 Thread Kent West
On Thu, Feb 22, 2018 at 9:13 PM, Kent Frazier 
wrote:

> Change the name of index.php to index1.php and access using that name?
>

That almost works. It allows me to open the index(1).php home page from my
link in index.html, but if I try to go any deeper, it loads the index.html
(while, interestingly, having the .php's deeper-level URL in the URL
address bar of the web-browser). So apparently, the rest of the .php-based
site expects its own index.php file to exist.

>
> On 2/22/2018 2:38 PM, Kent West wrote:
>
> I have a WordPress site that works. If my 
> /etc/apache2/sites-enabled/sitename.conf
> file is set with the "DirectoryIndex index.php" directive, all is well, and
> pointing a web-browser to http://sitename.org loads the sitename's
> index.php file as it should.
>
> But I need to temporarily put up a dummy site, consisting of just a very
> simply index.html file. That's easy enough; I create the index.html file,
> and then change the sitename.conf file to "DirectoryIndex index.html" and
> restart Apache2. All is good.
>
> But I still need to manually be able to get to the full-blown .php-based
> site. When I web-browse to sitename/index.php, it reroutes to
> sitename/index.html. If I change the .conf file to "DirectoryIndex
> index.html index.php" and restart Apache2, that doesn't help.
>
> It seems I can serve index.html OR index.php, but not both at the same
> time (depending on the URL entered into the web-browser's URL bar).
>
> Bonus points after getting this to work: Adding a button in the
> "index.html" file that allows the viewer to "Click here to get to Full
> Site" that points to "index.php".
>
> I've been googling all morning and part of last night to figure this out,
> with no joy. Thanks for any help you can throw my way!
>
>
> --
> Kent West<")))><
> Westing Peacefully - http://kentwest.blogspot.com
>
>
>


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-22 Thread Kent West
On Thu, Feb 22, 2018 at 7:40 PM, Eric Covener  wrote:

> On Thu, Feb 22, 2018 at 5:38 PM, Kent West  wrote:
> > I have a WordPress site that works. If my
> > /etc/apache2/sites-enabled/sitename.conf file is set with the
> > "DirectoryIndex index.php" directive, all is well, and pointing a
> > web-browser to http://sitename.org loads the sitename's index.php file
> as it
> > should.
> >
> > But I need to temporarily put up a dummy site, consisting of just a very
> > simply index.html file. That's easy enough; I create the index.html file,
> > and then change the sitename.conf file to "DirectoryIndex index.html" and
> > restart Apache2. All is good.
> >
> > But I still need to manually be able to get to the full-blown .php-based
> > site. When I web-browse to sitename/index.php, it reroutes to
> > sitename/index.html. If I change the .conf file to "DirectoryIndex
> > index.html index.php" and restart Apache2, that doesn't help.
> >
> > It seems I can serve index.html OR index.php, but not both at the same
> time
> > (depending on the URL entered into the web-browser's URL bar).
> >
> > Bonus points after getting this to work: Adding a button in the
> "index.html"
> > file that allows the viewer to "Click here to get to Full Site" that
> points
> > to "index.php".
> >
> > I've been googling all morning and part of last night to figure this out,
> > with no joy. Thanks for any help you can throw my way!
>
> one idea:
>
> 
> ...
> DirectoryIndex index.html index.php
> 
>
> # Access via an ssh tunnel.
> 
> ...
> DirectoryIndex index.php
> 
>


I'm not understanding how to make this work. I added:


DirectoryIndex index.php


to the bottom of my sitename.conf file, and successfully restarted Apache2,
but I can't figure out what to do from there.


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


Re: [users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-22 Thread Eric Covener
On Thu, Feb 22, 2018 at 5:38 PM, Kent West  wrote:
> I have a WordPress site that works. If my
> /etc/apache2/sites-enabled/sitename.conf file is set with the
> "DirectoryIndex index.php" directive, all is well, and pointing a
> web-browser to http://sitename.org loads the sitename's index.php file as it
> should.
>
> But I need to temporarily put up a dummy site, consisting of just a very
> simply index.html file. That's easy enough; I create the index.html file,
> and then change the sitename.conf file to "DirectoryIndex index.html" and
> restart Apache2. All is good.
>
> But I still need to manually be able to get to the full-blown .php-based
> site. When I web-browse to sitename/index.php, it reroutes to
> sitename/index.html. If I change the .conf file to "DirectoryIndex
> index.html index.php" and restart Apache2, that doesn't help.
>
> It seems I can serve index.html OR index.php, but not both at the same time
> (depending on the URL entered into the web-browser's URL bar).
>
> Bonus points after getting this to work: Adding a button in the "index.html"
> file that allows the viewer to "Click here to get to Full Site" that points
> to "index.php".
>
> I've been googling all morning and part of last night to figure this out,
> with no joy. Thanks for any help you can throw my way!

one idea:


...
DirectoryIndex index.html index.php


# Access via an ssh tunnel.

...
DirectoryIndex index.php


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



[users@httpd] How to browse to index.php OR index.html on WordPress site?

2018-02-22 Thread Kent West
I have a WordPress site that works. If my
/etc/apache2/sites-enabled/sitename.conf file is set with the
"DirectoryIndex index.php" directive, all is well, and pointing a
web-browser to http://sitename.org loads the sitename's index.php file as
it should.

But I need to temporarily put up a dummy site, consisting of just a very
simply index.html file. That's easy enough; I create the index.html file,
and then change the sitename.conf file to "DirectoryIndex index.html" and
restart Apache2. All is good.

But I still need to manually be able to get to the full-blown .php-based
site. When I web-browse to sitename/index.php, it reroutes to
sitename/index.html. If I change the .conf file to "DirectoryIndex
index.html index.php" and restart Apache2, that doesn't help.

It seems I can serve index.html OR index.php, but not both at the same time
(depending on the URL entered into the web-browser's URL bar).

Bonus points after getting this to work: Adding a button in the
"index.html" file that allows the viewer to "Click here to get to Full
Site" that points to "index.php".

I've been googling all morning and part of last night to figure this out,
with no joy. Thanks for any help you can throw my way!


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