A blunt approach could also leverage mod_rewrite, but I would test Yann's
suggestion. You can rewrite the path to the filesystem provided that the
RewriteRule is in the vhost context.
On Tue, 3 May 2022 at 12:57, Ivan Ionut wrote:
> No, I have clients that from wan too. Basically when I make som
No, I have clients that from wan too. Basically when I make some
important changes to a site...all clients from wan to view the
under_construction directory.
On 03-05-2022 16:03, Frank Gingras wrote:
Do all clients come from the 192.168.1.0/24 [1] range?
On Tue, 3 May 2022 at 04:23, Ivan Ion
On Tue, May 3, 2022 at 5:44 PM Yann Ylavic wrote:
>
> On Mon, May 2, 2022 at 8:24 AM Ivan Ionut wrote:
> >
> > I'm trying to set a virtual host on apache2 with this configuration.
> >
> >
> > ServerName mysite.com
> > ServerAlias www.mysite.com
> >
> >
> > Define directory_path /srv/h
On Mon, May 2, 2022 at 8:24 AM Ivan Ionut wrote:
>
> I'm trying to set a virtual host on apache2 with this configuration.
>
>
> ServerName mysite.com
> ServerAlias www.mysite.com
>
>
> Define directory_path /srv/http/mysite
>
>
> Define directory_path /srv/http/under_construc
Do all clients come from the 192.168.1.0/24 range?
On Tue, 3 May 2022 at 04:23, Ivan Ionut wrote:
> I did not understand... I have to define two vhosts configs for mysite.com
> with two separate document root in each config?
>
>
> PS: i have one static ip for mysite.com
>
> On 03-05-2022 00:32,
I did not understand... I have to define two vhosts configs for
mysite.com with two separate document root in each config?
PS: i have one static ip for mysite.com [1]
On 03-05-2022 00:32, Frank Gingras wrote:
The simple approach here would be to define separate IP:80 vhosts and
set a separate
The simple approach here would be to define separate IP:80 vhosts and set a
separate document root in each vhost.
On Mon, 2 May 2022 at 06:48, Eric Covener wrote:
> You cannot use Define conditionally this way. It is parsed at startup and
> ignores any enclosing directives
>
> On Mon, May 2, 202
You cannot use Define conditionally this way. It is parsed at startup and
ignores any enclosing directives
On Mon, May 2, 2022, 2:24 AM Ivan Ionut wrote:
> I'm trying to set a virtual host on apache2 with this configuration.
>
>
> ServerName mysite.com
> ServerAlias www.mysite.com
>
>
> Define
I'm trying to set a virtual host on apache2 with this configuration.
ServerName mysite.com
ServerAlias www.mysite.com
Define directory_path /srv/http/mysite
Define directory_path /srv/http/under_construction
DocumentRoot ${directory_path}
Require all granted
The problem is that the If