Re: web page problem
On Thursday 13 June 2019 05:09:35 pm Felix Miata wrote:
> Gene Heskett composed on 2019-06-13 16:44 (UTC-0400):
> > Felix Miata wrote:
> >
> > Alias /urlDebSub/ "/LocalPathHostingTheDebs/"
> >
> > I've done that to /etc apache2/apache2.conf, and restarted it.
> >
> > Then because the web servers root page is at /var/www/html, and gene
> > is the head of the data, I touched urlDebSub in /var/www/html/gene,
> > made it
>
> Can touch create a new directory, or only a file?
>
> urlDebSub is an alias seen in URLs on the web, not a real directory on
> the Apache server.
>
> e.g. My screenshots are in a directory named screenshots. The alias
> name in default-server.conf is /SS/, so the URL to reach the
> screenshots I host reads www.mywebsite.com/SS/.
>
> > owned by www-data:www-data, and modified gene/index.html
> > accordingly. No errors, but blank page. Suspect a perms breakage
> > someplace. I get perfect results, but www-data:www-data can't. And
> > I can't make the whole chain a 0777. Or shouldn't. 0755 should do
> > it, but doesn't seem to.
>
> Probably need something like this:
>
> <Directory "/LocalPathHostingTheDebs">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> <IfModule !mod_access_compat.c>
> Require all granted
> </IfModule>
> <IfModule mod_access_compat.c>
> Order allow,deny
> Allow from all
> </IfModule>
> </Directory>
looks good, but the problem is, only gene=user 1000 has any rights to
follow that path, so this access must be done as gene, not the default
www-data:www-data, or even as the parent session of apache2.. Is there
an "as user=gene" command that can be used only for this stanza that I
can put in this stanza? root cannot go up this path to see anything,
neither can www-data.
Is this a place where making gene a member of group www-data would help?
No, I just looked and I am already a member of that group.
Help, I've built a sandbox not even root can get into!!!
And since apache2 doesn't believe in man pages, what do they use instead
of?
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: