You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by bruce <ba...@gmail.com> on 2023/11/11 22:15:39 UTC

[users@httpd] ubuntu apache2

Hi.

Trying to set up a test http://1.2.3.4/foo

where I have a laravel/php setup
 /var/www/html/foo/foo/public <<<

As far as I can tell, there should be an "alias.conf" -- foo.conf in the
/etc/apache2/conf-availables/alias.conf
/etc/apache2/sites-available/foo

and the base httpd.conf

I think there needs to be "rewrite" in there somewhere as well.

Anyone have a solid example of how this should be put together, the
steps required.

I seem to be getting an index list.


At the same time, once this works, I'm going to also "test/try" to get
a javascript app running that can be viewed/displayed from the same
test server.

The test server is a digitalocean ubuntu, easily accessible if you
want to look at the dir/tree/files.

thanks

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


Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
Hi Paul!

Thanks for the reply!!

I'm answering below.... (I've also resubmitted a post with a bit more data)


A couple of questions.  If you have access to and root privileges on
your server, what system are you running? (# cat /etc/os-release) - I
think you said Ubuntu. Maybe # apache2 -v would be useful as you mention
digitalocean -- have you asked them if they installed a differing
compilation or .conf?

The apache version
 -->>>  Apache/2.4.57 (Ubuntu)

I completely "stopped" nginx for the testing.. for now. If the other
person gets back to me, we'll discuss this+Docker (waayy out of my
league for now)
So, for now, there is not "nginx" process running in the proc tbl

Everything I'm running into, is a pure function of Apache2/laravel and
setting the overall environment up correctly to have laravel apps in
subdirs, as well as the correct "Alias" designation to map to the
associated laravel app.

This of course requires changing the alias.conf file, as well as the
/etc/apache2/sites-available/foo1.conf  foo2.conf for the VirtualHost
attributes

thanks

-bruce
--and if anyone wants to climb in the Ubuntu instance, I'm more than
willing to give complete access. Easy enough to drop/recreate!

thanks



>
> appears might have been a timing thing..

"timing thing" -- how do you define this?  (no answer required if you
don't have a relevant IT answer)

i get errs..
> but they're all apache errs..
>
> except -- now shows nginx... this is weird!

What does # nginx -T show?  (please don't post it here, this is not an
nginx list). If it shows anything, you may well not yet have an Apache
problem.  You will have to be certain that nginx is passing the required
and properly formatted request to apache/httpd.

[assuming nginx is properly configured for your specific case, and
assuming that the nginx error.log shows nothing relevant, although it
might give you something in access.log] have you reviewed and analysed
"but they're *all* apache errs" one by one and tried to trace and
correct them?

Good luck,
Paul

On Sun, Nov 12, 2023 at 11:14 AM Paul <st...@stormy.ca> wrote:
>
> A: It reverses the normal flow of conversation.
>
> Q: What's wrong with top-posting?
>
> A: Top-posting.
>
> Q: What's the biggest scourge on plain text email discussions?
>
> On 2023-11-12 00:35, bruce wrote:
> > ok.. weird...
> >
> > appears might have been a timing thing.. i get errs..
> > but they're all apache errs..
> >
> > except -- now shows nginx... this is weird!
> >
> >
> > On Sun, Nov 12, 2023 at 12:09 AM bruce <ba...@gmail.com> wrote:
> >>
> >> hi...
> >>
> >> ok...
> >> http://157.245.251.134
> >> --generates the default apache page..
> >>
> >>
> >> http://157.245.251.134/wave/
> >> --generates a 403 forbidden...
> >>    from nginx!!!  ---- ok.. looks like nginx is/might be interfering
> >> with this... makes sense... another person had been modifying some
> >> things and was going to use docker -- which might have nginx as
> >> well...
> >>
> >> hmm.. so how to get rid of this..
> >>
> >> I did a stop nginx.. it's not in the ps/process tbl...
> >>
> >> so why is it somehow showing up in the url traffic..
> >>
> >>
> >> On Sat, Nov 11, 2023 at 11:16 PM bruce <ba...@gmail.com> wrote:
> >>>
> >>> hi..
> >>>
> >>> /etc/apache2# cat /etc/apache2/sites-available/wave.conf
> >>> <VirtualHost *:80>
> >>>      ServerAdmin foo@yahoo.com
> >>>      ServerName  161.35.5.174
> >>>      ServerAlias temp
> >>>      DocumentRoot   /var/www/html/wave/wave/public
> >>>
> >>>      DirectoryIndex index.php /public/index.php
> >>>
> >>>      <Directory    /var/www/html/wave/wave/public>
> >>>              #Options Indexes FollowSymLinks MultiViews
> >>>              Options +FollowSymlinks
> >>>              AllowOverride All
> >>>              #Order allow,deny
> >>>              #allow from all
> >>>              Require all granted
> >>>      </Directory>
> >>>
> >>>      LogLevel debug
> >>>      ErrorLog ${APACHE_LOG_DIR}/error.log
> >>>      CustomLog ${APACHE_LOG_DIR}/access.log combined
> >>> </VirtualHost>
> >>>
> >>> is the only vhost file
> >>>
> >>> cat /etc/apache2/mods-available/alias.conf
> >>> Alias /icons/ "/usr/share/apache2/icons/"
> >>> Alias /wave/ "/var/www/html/wave"
> >>> #Alias /wave/ "/var/www/html/wave/public"
> >>>
> >>>
> >>> <Directory "/usr/share/apache2/icons">
> >>>      Options FollowSymlinks
> >>>      AllowOverride None
> >>>      Require all granted
> >>> </Directory>
> >>> --------------------------------------------
> >>>
> >>> is where I was trying to test the alias...
> >>>
> >>> systemctl restart apache2  --- runs ok...
> >>>
> >>> and apachectl -S
> >>> still gives the default DocumentRoot  !!
> >>>
> >>> I'm not seeing my errors..
> >>>
> >>>
> >>> On Sat, Nov 11, 2023 at 10:45 PM Frank Gingras <th...@apache.org> wrote:
> >>>>
> >>>>
> >>>>
> >>>> On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:
> >>>>>
> >>>>> Weird....
> >>>>>
> >>>>> Seems the "DocumentRoot" as displayed in
> >>>>> apachectl -S
> >>>>> AH00558: apache2: Could not reliably determine the server's fully
> >>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> >>>>> globally to suppress this message
> >>>>> VirtualHost configuration:
> >>>>> *:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
> >>>>> ServerRoot: "/etc/apache2"
> >>>>> Main DocumentRoot: "/var/www/html"  <<<<<
> >>>>>
> >>>>> never gets changed regardless of what I do with "wave.conf" in the
> >>>>> /etc/apache2/sites-available/wave.conf
> >>>>>
> >>>>> Researching the 'net.. seems others have experienced the same issue...
> >>>>>
> >>>>> just weird..
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
> >>>>>>>
> >>>>>>> I wasnt sure if servername is optional, or used. Since I have no
> >>>>>>> domain/server, I'm assuming I can the use the test ipAddress..
> >>>>>>>
> >>>>>>> still testing!
> >>>>>>>
> >>>>>>> thanks
> >>>>>>>
> >>>>>>> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
> >>>>>>>>>
> >>>>>>>>> arrggg..
> >>>>>>>>>
> >>>>>>>>> Ok. something's going on that I'm missing..
> >>>>>>>>>
> >>>>>>>>> I changed the wave.conf in the /etc/apache/sites-available
> >>>>>>>>> /etc/apache2/sites-enabled
> >>>>>>>>>
> >>>>>>>>> I actually renamed the file to wave.conf1
> >>>>>>>>> I did the a2dissites *.conf as well as stopped/restarted apache2
> >>>>>>>>>
> >>>>>>>>> I then did
> >>>>>>>>>   apachectl -S
> >>>>>>>>> AH00558: apache2: Could not reliably determine the server's fully
> >>>>>>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> >>>>>>>>> globally to suppress this message
> >>>>>>>>> VirtualHost configuration:
> >>>>>>>>> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
> >>>>>>>>> ServerRoot: "/etc/apache2"
> >>>>>>>>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >>>>>>>>> Main ErrorLog: "/var/log/apache2/error.log"
> >>>>>>>>> Mutex mpm-accept: using_defaults
> >>>>>>>>> Mutex watchdog-callback: using_defaults
> >>>>>>>>> Mutex rewrite-map: using_defaults
> >>>>>>>>> Mutex default: dir="/var/run/apache2/" mechanism=default
> >>>>>>>>> PidFile: "/var/run/apache2/apache2.pid"
> >>>>>>>>> Define: DUMP_VHOSTS
> >>>>>>>>> Define: DUMP_RUN_CFG
> >>>>>>>>> User: name="www-data" id=33
> >>>>>>>>> Group: name="www-data" id=33
> >>>>>>>>>
> >>>>>>>>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >>>>>>>>> and I get this as the default... where/why is this set?
> >>>>>>>>>
> >>>>>>>>> did a "find" and only saw it in the /etc/apache/* files I had
> >>>>>>>>> renamed.. there are no *.conf for the testing... (for now..)
> >>>>>>>>>
> >>>>>>>>> any thoughts/ideas!
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> thanks
> >>>>>>>>>
> >>>>>>>>> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks..
> >>>>>>>>>>>
> >>>>>>>>>>> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
> >>>>>>>>>>>
> >>>>>>>>>>> Pretty sure this is simple.. but can't see what's missing...
> >>>>>>>>>>>
> >>>>>>>>>>> thanks
> >>>>>>>>>>>
> >>>>>>>>>>> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Hi Frank!!
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> thanks for the reply.
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> If you don't mind.. here's my setup
> >>>>>>>>>>>>> ubuntu -- apache2
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> /etc/apache2/mods-available/alias.conf
> >>>>>>>>>>>>> ------------------------------------------------------------------
> >>>>>>>>>>>>> Alias /icons/ "/usr/share/apache2/icons/"
> >>>>>>>>>>>>> #Alias /wave/ "/var/www/html/wave"
> >>>>>>>>>>>>> Alias /wave/ "/var/www/html/wave/wave/public"
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> <Directory "/usr/share/apache2/icons">
> >>>>>>>>>>>>>      Options FollowSymlinks
> >>>>>>>>>>>>>      AllowOverride None
> >>>>>>>>>>>>>      Require all granted
> >>>>>>>>>>>>> </Directory>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> -----------------------------------------------------------
> >>>>>>>>>>>>> ls -al /var/www/html/wave/wave/public
> >>>>>>>>>>>>>   www-data:www-data  (775)
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> ls -al /var/www/html/wave/wave/storage
> >>>>>>>>>>>>>   www-data:www-data  (775)
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> /etc/apache2/sites-available/wave
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> ls -al /etc/apache2/sites-available
> >>>>>>>>>>>>> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> cat /etc/apache2/sites-available/wave.conf
> >>>>>>>>>>>>> <VirtualHost *:80>
> >>>>>>>>>>>>>      ServerAdmin admin@example.com
> >>>>>>>>>>>>>      ServerName  temp
> >>>>>>>>>>>>>      ServerAlias temp
> >>>>>>>>>>>>>       DocumentRoot   /var/www/html/wave/wave/public
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>      <Directory    /var/www/html/wave/wave/public/>
> >>>>>>>>>>>>>              Options Indexes FollowSymLinks MultiViews
> >>>>>>>>>>>>>              AllowOverride All
> >>>>>>>>>>>>>              Order allow,deny
> >>>>>>>>>>>>>              allow from all
> >>>>>>>>>>>>>              Require all granted
> >>>>>>>>>>>>>      </Directory>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>      LogLevel debug
> >>>>>>>>>>>>>      ErrorLog ${APACHE_LOG_DIR}/error.log
> >>>>>>>>>>>>>      CustomLog ${APACHE_LOG_DIR}/access.log combined
> >>>>>>>>>>>>> </VirtualHost>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> ----------------------------------------------------------------------------------------------------
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> and then simply run
> >>>>>>>>>>>>>      a2ensite wave.conf
> >>>>>>>>>>>>>      service apache2 reload
> >>>>>>>>>>>>>      systemctl restart apache2
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> to restart apache...
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> and the test site
> >>>>>>>>>>>>>   http://161.35.5.174/wave
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> should appear??
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Is there anything else you see that I need to implement?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> thanks
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Hi.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Trying to set up a test http://1.2.3.4/foo
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> where I have a laravel/php setup
> >>>>>>>>>>>>>>>   /var/www/html/foo/foo/public <<<
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
> >>>>>>>>>>>>>>> /etc/apache2/conf-availables/alias.conf
> >>>>>>>>>>>>>>> /etc/apache2/sites-available/foo
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> and the base httpd.conf
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> I think there needs to be "rewrite" in there somewhere as well.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Anyone have a solid example of how this should be put together, the
> >>>>>>>>>>>>>>> steps required.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> I seem to be getting an index list.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> At the same time, once this works, I'm going to also "test/try" to get
> >>>>>>>>>>>>>>> a javascript app running that can be viewed/displayed from the same
> >>>>>>>>>>>>>>> test server.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> The test server is a digitalocean ubuntu, easily accessible if you
> >>>>>>>>>>>>>>> want to look at the dir/tree/files.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> thanks
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>>>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Finally, you'll need to configure httpd to parse php content, see:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> This isn't really a ubuntu-centric mailing list, to be fair.
> >>>>>>>>>>>>
> >>>>>>>>>>>> I would recommend you run apachectl -S to verify that:
> >>>>>>>>>>>>
> >>>>>>>>>>>> 1) Your vhosts are properly defined
> >>>>>>>>>>>> 2) Then examine the configuration of each vhost
> >>>>>>>>>>>>
> >>>>>>>>>>>> I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
> >>>>>>>>>>>
> >>>>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
> >>>>>>>>>>
> >>>>>>>>>> As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
> >>>>>>>>>
> >>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
> >>>>>>>>
> >>>>>>>> Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
> >>>>>>>
> >>>>>>> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>>>
> >>>>>>
> >>>>>> When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>>
> >>>>
> >>>> It will not; it's inherited from the Server context, and if not present there, uses the built-in default. It's not worth focusing on.
> >>>>
> >>>> Again, edit your vhost directly, and read about the context for directives.
> >
> On 2023-11-12 00:35, bruce wrote:
> > ok.. weird...
>
> A couple of questions.  If you have access to and root privileges on
> your server, what system are you running? (# cat /etc/os-release) - I
> think you said Ubuntu. Maybe # apache2 -v would be useful as you mention
> digitalocean -- have you asked them if they installed a differing
> compilation or .conf?
> >
> > appears might have been a timing thing..
>
> "timing thing" -- how do you define this?  (no answer required if you
> don't have a relevant IT answer)
>
> i get errs..
> > but they're all apache errs..
> >
> > except -- now shows nginx... this is weird!
>
> What does # nginx -T show?  (please don't post it here, this is not an
> nginx list). If it shows anything, you may well not yet have an Apache
> problem.  You will have to be certain that nginx is passing the required
> and properly formatted request to apache/httpd.
>
> [assuming nginx is properly configured for your specific case, and
> assuming that the nginx error.log shows nothing relevant, although it
> might give you something in access.log] have you reviewed and analysed
> "but they're *all* apache errs" one by one and tried to trace and
> correct them?
>
> Good luck,
> Paul
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

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


Re: [users@httpd] ubuntu apache2

Posted by Paul <st...@stormy.ca>.
A: It reverses the normal flow of conversation.

Q: What's wrong with top-posting?

A: Top-posting.

Q: What's the biggest scourge on plain text email discussions?

On 2023-11-12 00:35, bruce wrote:
> ok.. weird...
> 
> appears might have been a timing thing.. i get errs..
> but they're all apache errs..
> 
> except -- now shows nginx... this is weird!
> 
> 
> On Sun, Nov 12, 2023 at 12:09 AM bruce <ba...@gmail.com> wrote:
>>
>> hi...
>>
>> ok...
>> http://157.245.251.134
>> --generates the default apache page..
>>
>>
>> http://157.245.251.134/wave/
>> --generates a 403 forbidden...
>>    from nginx!!!  ---- ok.. looks like nginx is/might be interfering
>> with this... makes sense... another person had been modifying some
>> things and was going to use docker -- which might have nginx as
>> well...
>>
>> hmm.. so how to get rid of this..
>>
>> I did a stop nginx.. it's not in the ps/process tbl...
>>
>> so why is it somehow showing up in the url traffic..
>>
>>
>> On Sat, Nov 11, 2023 at 11:16 PM bruce <ba...@gmail.com> wrote:
>>>
>>> hi..
>>>
>>> /etc/apache2# cat /etc/apache2/sites-available/wave.conf
>>> <VirtualHost *:80>
>>>      ServerAdmin foo@yahoo.com
>>>      ServerName  161.35.5.174
>>>      ServerAlias temp
>>>      DocumentRoot   /var/www/html/wave/wave/public
>>>
>>>      DirectoryIndex index.php /public/index.php
>>>
>>>      <Directory    /var/www/html/wave/wave/public>
>>>              #Options Indexes FollowSymLinks MultiViews
>>>              Options +FollowSymlinks
>>>              AllowOverride All
>>>              #Order allow,deny
>>>              #allow from all
>>>              Require all granted
>>>      </Directory>
>>>
>>>      LogLevel debug
>>>      ErrorLog ${APACHE_LOG_DIR}/error.log
>>>      CustomLog ${APACHE_LOG_DIR}/access.log combined
>>> </VirtualHost>
>>>
>>> is the only vhost file
>>>
>>> cat /etc/apache2/mods-available/alias.conf
>>> Alias /icons/ "/usr/share/apache2/icons/"
>>> Alias /wave/ "/var/www/html/wave"
>>> #Alias /wave/ "/var/www/html/wave/public"
>>>
>>>
>>> <Directory "/usr/share/apache2/icons">
>>>      Options FollowSymlinks
>>>      AllowOverride None
>>>      Require all granted
>>> </Directory>
>>> --------------------------------------------
>>>
>>> is where I was trying to test the alias...
>>>
>>> systemctl restart apache2  --- runs ok...
>>>
>>> and apachectl -S
>>> still gives the default DocumentRoot  !!
>>>
>>> I'm not seeing my errors..
>>>
>>>
>>> On Sat, Nov 11, 2023 at 10:45 PM Frank Gingras <th...@apache.org> wrote:
>>>>
>>>>
>>>>
>>>> On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:
>>>>>
>>>>> Weird....
>>>>>
>>>>> Seems the "DocumentRoot" as displayed in
>>>>> apachectl -S
>>>>> AH00558: apache2: Could not reliably determine the server's fully
>>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>>>>> globally to suppress this message
>>>>> VirtualHost configuration:
>>>>> *:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
>>>>> ServerRoot: "/etc/apache2"
>>>>> Main DocumentRoot: "/var/www/html"  <<<<<
>>>>>
>>>>> never gets changed regardless of what I do with "wave.conf" in the
>>>>> /etc/apache2/sites-available/wave.conf
>>>>>
>>>>> Researching the 'net.. seems others have experienced the same issue...
>>>>>
>>>>> just weird..
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
>>>>>>>
>>>>>>> I wasnt sure if servername is optional, or used. Since I have no
>>>>>>> domain/server, I'm assuming I can the use the test ipAddress..
>>>>>>>
>>>>>>> still testing!
>>>>>>>
>>>>>>> thanks
>>>>>>>
>>>>>>> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> arrggg..
>>>>>>>>>
>>>>>>>>> Ok. something's going on that I'm missing..
>>>>>>>>>
>>>>>>>>> I changed the wave.conf in the /etc/apache/sites-available
>>>>>>>>> /etc/apache2/sites-enabled
>>>>>>>>>
>>>>>>>>> I actually renamed the file to wave.conf1
>>>>>>>>> I did the a2dissites *.conf as well as stopped/restarted apache2
>>>>>>>>>
>>>>>>>>> I then did
>>>>>>>>>   apachectl -S
>>>>>>>>> AH00558: apache2: Could not reliably determine the server's fully
>>>>>>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>>>>>>>>> globally to suppress this message
>>>>>>>>> VirtualHost configuration:
>>>>>>>>> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
>>>>>>>>> ServerRoot: "/etc/apache2"
>>>>>>>>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>>>>>>>>> Main ErrorLog: "/var/log/apache2/error.log"
>>>>>>>>> Mutex mpm-accept: using_defaults
>>>>>>>>> Mutex watchdog-callback: using_defaults
>>>>>>>>> Mutex rewrite-map: using_defaults
>>>>>>>>> Mutex default: dir="/var/run/apache2/" mechanism=default
>>>>>>>>> PidFile: "/var/run/apache2/apache2.pid"
>>>>>>>>> Define: DUMP_VHOSTS
>>>>>>>>> Define: DUMP_RUN_CFG
>>>>>>>>> User: name="www-data" id=33
>>>>>>>>> Group: name="www-data" id=33
>>>>>>>>>
>>>>>>>>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>>>>>>>>> and I get this as the default... where/why is this set?
>>>>>>>>>
>>>>>>>>> did a "find" and only saw it in the /etc/apache/* files I had
>>>>>>>>> renamed.. there are no *.conf for the testing... (for now..)
>>>>>>>>>
>>>>>>>>> any thoughts/ideas!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> thanks
>>>>>>>>>
>>>>>>>>> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Thanks..
>>>>>>>>>>>
>>>>>>>>>>> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
>>>>>>>>>>>
>>>>>>>>>>> Pretty sure this is simple.. but can't see what's missing...
>>>>>>>>>>>
>>>>>>>>>>> thanks
>>>>>>>>>>>
>>>>>>>>>>> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Frank!!
>>>>>>>>>>>>>
>>>>>>>>>>>>> thanks for the reply.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If you don't mind.. here's my setup
>>>>>>>>>>>>> ubuntu -- apache2
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> /etc/apache2/mods-available/alias.conf
>>>>>>>>>>>>> ------------------------------------------------------------------
>>>>>>>>>>>>> Alias /icons/ "/usr/share/apache2/icons/"
>>>>>>>>>>>>> #Alias /wave/ "/var/www/html/wave"
>>>>>>>>>>>>> Alias /wave/ "/var/www/html/wave/wave/public"
>>>>>>>>>>>>>
>>>>>>>>>>>>> <Directory "/usr/share/apache2/icons">
>>>>>>>>>>>>>      Options FollowSymlinks
>>>>>>>>>>>>>      AllowOverride None
>>>>>>>>>>>>>      Require all granted
>>>>>>>>>>>>> </Directory>
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----------------------------------------------------------
>>>>>>>>>>>>> ls -al /var/www/html/wave/wave/public
>>>>>>>>>>>>>   www-data:www-data  (775)
>>>>>>>>>>>>>
>>>>>>>>>>>>> ls -al /var/www/html/wave/wave/storage
>>>>>>>>>>>>>   www-data:www-data  (775)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> /etc/apache2/sites-available/wave
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ls -al /etc/apache2/sites-available
>>>>>>>>>>>>> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>>>>>>>>>>>>>
>>>>>>>>>>>>> cat /etc/apache2/sites-available/wave.conf
>>>>>>>>>>>>> <VirtualHost *:80>
>>>>>>>>>>>>>      ServerAdmin admin@example.com
>>>>>>>>>>>>>      ServerName  temp
>>>>>>>>>>>>>      ServerAlias temp
>>>>>>>>>>>>>       DocumentRoot   /var/www/html/wave/wave/public
>>>>>>>>>>>>>
>>>>>>>>>>>>>      <Directory    /var/www/html/wave/wave/public/>
>>>>>>>>>>>>>              Options Indexes FollowSymLinks MultiViews
>>>>>>>>>>>>>              AllowOverride All
>>>>>>>>>>>>>              Order allow,deny
>>>>>>>>>>>>>              allow from all
>>>>>>>>>>>>>              Require all granted
>>>>>>>>>>>>>      </Directory>
>>>>>>>>>>>>>
>>>>>>>>>>>>>      LogLevel debug
>>>>>>>>>>>>>      ErrorLog ${APACHE_LOG_DIR}/error.log
>>>>>>>>>>>>>      CustomLog ${APACHE_LOG_DIR}/access.log combined
>>>>>>>>>>>>> </VirtualHost>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ----------------------------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> and then simply run
>>>>>>>>>>>>>      a2ensite wave.conf
>>>>>>>>>>>>>      service apache2 reload
>>>>>>>>>>>>>      systemctl restart apache2
>>>>>>>>>>>>>
>>>>>>>>>>>>> to restart apache...
>>>>>>>>>>>>>
>>>>>>>>>>>>> and the test site
>>>>>>>>>>>>>   http://161.35.5.174/wave
>>>>>>>>>>>>>
>>>>>>>>>>>>> should appear??
>>>>>>>>>>>>>
>>>>>>>>>>>>> Is there anything else you see that I need to implement?
>>>>>>>>>>>>>
>>>>>>>>>>>>> thanks
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Trying to set up a test http://1.2.3.4/foo
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> where I have a laravel/php setup
>>>>>>>>>>>>>>>   /var/www/html/foo/foo/public <<<
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>>>>>>>>>>>>>>> /etc/apache2/conf-availables/alias.conf
>>>>>>>>>>>>>>> /etc/apache2/sites-available/foo
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> and the base httpd.conf
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I think there needs to be "rewrite" in there somewhere as well.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Anyone have a solid example of how this should be put together, the
>>>>>>>>>>>>>>> steps required.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I seem to be getting an index list.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> At the same time, once this works, I'm going to also "test/try" to get
>>>>>>>>>>>>>>> a javascript app running that can be viewed/displayed from the same
>>>>>>>>>>>>>>> test server.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The test server is a digitalocean ubuntu, easily accessible if you
>>>>>>>>>>>>>>> want to look at the dir/tree/files.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> thanks
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Finally, you'll need to configure httpd to parse php content, see:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> This isn't really a ubuntu-centric mailing list, to be fair.
>>>>>>>>>>>>
>>>>>>>>>>>> I would recommend you run apachectl -S to verify that:
>>>>>>>>>>>>
>>>>>>>>>>>> 1) Your vhosts are properly defined
>>>>>>>>>>>> 2) Then examine the configuration of each vhost
>>>>>>>>>>>>
>>>>>>>>>>>> I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
>>>>>>>>>>
>>>>>>>>>> As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>>
>>>>>>>>
>>>>>>>> Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
>>>>>>>>
>>>>>>>> Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>>
>>>>>> When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>> It will not; it's inherited from the Server context, and if not present there, uses the built-in default. It's not worth focusing on.
>>>>
>>>> Again, edit your vhost directly, and read about the context for directives.
> 
On 2023-11-12 00:35, bruce wrote:
> ok.. weird...

A couple of questions.  If you have access to and root privileges on 
your server, what system are you running? (# cat /etc/os-release) - I 
think you said Ubuntu. Maybe # apache2 -v would be useful as you mention 
digitalocean -- have you asked them if they installed a differing 
compilation or .conf?
> 
> appears might have been a timing thing.. 

"timing thing" -- how do you define this?  (no answer required if you 
don't have a relevant IT answer)

i get errs..
> but they're all apache errs..
> 
> except -- now shows nginx... this is weird!

What does # nginx -T show?  (please don't post it here, this is not an 
nginx list). If it shows anything, you may well not yet have an Apache 
problem.  You will have to be certain that nginx is passing the required 
and properly formatted request to apache/httpd.

[assuming nginx is properly configured for your specific case, and 
assuming that the nginx error.log shows nothing relevant, although it 
might give you something in access.log] have you reviewed and analysed 
"but they're *all* apache errs" one by one and tried to trace and 
correct them?

Good luck,
Paul








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


Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
ok.. weird...

appears might have been a timing thing.. i get errs..
but they're all apache errs..

except -- now shows nginx... this is weird!


On Sun, Nov 12, 2023 at 12:09 AM bruce <ba...@gmail.com> wrote:
>
> hi...
>
> ok...
> http://157.245.251.134
> --generates the default apache page..
>
>
> http://157.245.251.134/wave/
> --generates a 403 forbidden...
>   from nginx!!!  ---- ok.. looks like nginx is/might be interfering
> with this... makes sense... another person had been modifying some
> things and was going to use docker -- which might have nginx as
> well...
>
> hmm.. so how to get rid of this..
>
> I did a stop nginx.. it's not in the ps/process tbl...
>
> so why is it somehow showing up in the url traffic..
>
>
> On Sat, Nov 11, 2023 at 11:16 PM bruce <ba...@gmail.com> wrote:
> >
> > hi..
> >
> > /etc/apache2# cat /etc/apache2/sites-available/wave.conf
> > <VirtualHost *:80>
> >     ServerAdmin foo@yahoo.com
> >     ServerName  161.35.5.174
> >     ServerAlias temp
> >     DocumentRoot   /var/www/html/wave/wave/public
> >
> >     DirectoryIndex index.php /public/index.php
> >
> >     <Directory    /var/www/html/wave/wave/public>
> >             #Options Indexes FollowSymLinks MultiViews
> >             Options +FollowSymlinks
> >             AllowOverride All
> >             #Order allow,deny
> >             #allow from all
> >             Require all granted
> >     </Directory>
> >
> >     LogLevel debug
> >     ErrorLog ${APACHE_LOG_DIR}/error.log
> >     CustomLog ${APACHE_LOG_DIR}/access.log combined
> > </VirtualHost>
> >
> > is the only vhost file
> >
> > cat /etc/apache2/mods-available/alias.conf
> > Alias /icons/ "/usr/share/apache2/icons/"
> > Alias /wave/ "/var/www/html/wave"
> > #Alias /wave/ "/var/www/html/wave/public"
> >
> >
> > <Directory "/usr/share/apache2/icons">
> >     Options FollowSymlinks
> >     AllowOverride None
> >     Require all granted
> > </Directory>
> > --------------------------------------------
> >
> > is where I was trying to test the alias...
> >
> > systemctl restart apache2  --- runs ok...
> >
> > and apachectl -S
> > still gives the default DocumentRoot  !!
> >
> > I'm not seeing my errors..
> >
> >
> > On Sat, Nov 11, 2023 at 10:45 PM Frank Gingras <th...@apache.org> wrote:
> > >
> > >
> > >
> > > On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:
> > >>
> > >> Weird....
> > >>
> > >> Seems the "DocumentRoot" as displayed in
> > >> apachectl -S
> > >> AH00558: apache2: Could not reliably determine the server's fully
> > >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> > >> globally to suppress this message
> > >> VirtualHost configuration:
> > >> *:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
> > >> ServerRoot: "/etc/apache2"
> > >> Main DocumentRoot: "/var/www/html"  <<<<<
> > >>
> > >> never gets changed regardless of what I do with "wave.conf" in the
> > >> /etc/apache2/sites-available/wave.conf
> > >>
> > >> Researching the 'net.. seems others have experienced the same issue...
> > >>
> > >> just weird..
> > >>
> > >>
> > >>
> > >>
> > >> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
> > >> >
> > >> >
> > >> >
> > >> > On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
> > >> >>
> > >> >> I wasnt sure if servername is optional, or used. Since I have no
> > >> >> domain/server, I'm assuming I can the use the test ipAddress..
> > >> >>
> > >> >> still testing!
> > >> >>
> > >> >> thanks
> > >> >>
> > >> >> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
> > >> >> >>
> > >> >> >> arrggg..
> > >> >> >>
> > >> >> >> Ok. something's going on that I'm missing..
> > >> >> >>
> > >> >> >> I changed the wave.conf in the /etc/apache/sites-available
> > >> >> >> /etc/apache2/sites-enabled
> > >> >> >>
> > >> >> >> I actually renamed the file to wave.conf1
> > >> >> >> I did the a2dissites *.conf as well as stopped/restarted apache2
> > >> >> >>
> > >> >> >> I then did
> > >> >> >>  apachectl -S
> > >> >> >> AH00558: apache2: Could not reliably determine the server's fully
> > >> >> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> > >> >> >> globally to suppress this message
> > >> >> >> VirtualHost configuration:
> > >> >> >> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
> > >> >> >> ServerRoot: "/etc/apache2"
> > >> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> > >> >> >> Main ErrorLog: "/var/log/apache2/error.log"
> > >> >> >> Mutex mpm-accept: using_defaults
> > >> >> >> Mutex watchdog-callback: using_defaults
> > >> >> >> Mutex rewrite-map: using_defaults
> > >> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default
> > >> >> >> PidFile: "/var/run/apache2/apache2.pid"
> > >> >> >> Define: DUMP_VHOSTS
> > >> >> >> Define: DUMP_RUN_CFG
> > >> >> >> User: name="www-data" id=33
> > >> >> >> Group: name="www-data" id=33
> > >> >> >>
> > >> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> > >> >> >> and I get this as the default... where/why is this set?
> > >> >> >>
> > >> >> >> did a "find" and only saw it in the /etc/apache/* files I had
> > >> >> >> renamed.. there are no *.conf for the testing... (for now..)
> > >> >> >>
> > >> >> >> any thoughts/ideas!
> > >> >> >>
> > >> >> >>
> > >> >> >> thanks
> > >> >> >>
> > >> >> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> > >> >> >> >>
> > >> >> >> >> Thanks..
> > >> >> >> >>
> > >> >> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
> > >> >> >> >>
> > >> >> >> >> Pretty sure this is simple.. but can't see what's missing...
> > >> >> >> >>
> > >> >> >> >> thanks
> > >> >> >> >>
> > >> >> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> > >> >> >> >> >>
> > >> >> >> >> >> Hi Frank!!
> > >> >> >> >> >>
> > >> >> >> >> >> thanks for the reply.
> > >> >> >> >> >>
> > >> >> >> >> >> If you don't mind.. here's my setup
> > >> >> >> >> >> ubuntu -- apache2
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> /etc/apache2/mods-available/alias.conf
> > >> >> >> >> >> ------------------------------------------------------------------
> > >> >> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
> > >> >> >> >> >> #Alias /wave/ "/var/www/html/wave"
> > >> >> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
> > >> >> >> >> >>
> > >> >> >> >> >> <Directory "/usr/share/apache2/icons">
> > >> >> >> >> >>     Options FollowSymlinks
> > >> >> >> >> >>     AllowOverride None
> > >> >> >> >> >>     Require all granted
> > >> >> >> >> >> </Directory>
> > >> >> >> >> >>
> > >> >> >> >> >> -----------------------------------------------------------
> > >> >> >> >> >> ls -al /var/www/html/wave/wave/public
> > >> >> >> >> >>  www-data:www-data  (775)
> > >> >> >> >> >>
> > >> >> >> >> >> ls -al /var/www/html/wave/wave/storage
> > >> >> >> >> >>  www-data:www-data  (775)
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> /etc/apache2/sites-available/wave
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> ls -al /etc/apache2/sites-available
> > >> >> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> > >> >> >> >> >>
> > >> >> >> >> >> cat /etc/apache2/sites-available/wave.conf
> > >> >> >> >> >> <VirtualHost *:80>
> > >> >> >> >> >>     ServerAdmin admin@example.com
> > >> >> >> >> >>     ServerName  temp
> > >> >> >> >> >>     ServerAlias temp
> > >> >> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
> > >> >> >> >> >>
> > >> >> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
> > >> >> >> >> >>             Options Indexes FollowSymLinks MultiViews
> > >> >> >> >> >>             AllowOverride All
> > >> >> >> >> >>             Order allow,deny
> > >> >> >> >> >>             allow from all
> > >> >> >> >> >>             Require all granted
> > >> >> >> >> >>     </Directory>
> > >> >> >> >> >>
> > >> >> >> >> >>     LogLevel debug
> > >> >> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> > >> >> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> > >> >> >> >> >> </VirtualHost>
> > >> >> >> >> >>
> > >> >> >> >> >> ----------------------------------------------------------------------------------------------------
> > >> >> >> >> >>
> > >> >> >> >> >> and then simply run
> > >> >> >> >> >>     a2ensite wave.conf
> > >> >> >> >> >>     service apache2 reload
> > >> >> >> >> >>     systemctl restart apache2
> > >> >> >> >> >>
> > >> >> >> >> >> to restart apache...
> > >> >> >> >> >>
> > >> >> >> >> >> and the test site
> > >> >> >> >> >>  http://161.35.5.174/wave
> > >> >> >> >> >>
> > >> >> >> >> >> should appear??
> > >> >> >> >> >>
> > >> >> >> >> >> Is there anything else you see that I need to implement?
> > >> >> >> >> >>
> > >> >> >> >> >> thanks
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> Hi.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> where I have a laravel/php setup
> > >> >> >> >> >> >>  /var/www/html/foo/foo/public <<<
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
> > >> >> >> >> >> >> /etc/apache2/conf-availables/alias.conf
> > >> >> >> >> >> >> /etc/apache2/sites-available/foo
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> and the base httpd.conf
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> Anyone have a solid example of how this should be put together, the
> > >> >> >> >> >> >> steps required.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> I seem to be getting an index list.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> At the same time, once this works, I'm going to also "test/try" to get
> > >> >> >> >> >> >> a javascript app running that can be viewed/displayed from the same
> > >> >> >> >> >> >> test server.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
> > >> >> >> >> >> >> want to look at the dir/tree/files.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> thanks
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> ---------------------------------------------------------------------
> > >> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> >> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> > >> >> >> >> >> >>
> > >> >> >> >> >> >
> > >> >> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
> > >> >> >> >> >> >
> > >> >> >> >> >> > Finally, you'll need to configure httpd to parse php content, see:
> > >> >> >> >> >> >
> > >> >> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >> >>
> > >> >> >> >> >> ---------------------------------------------------------------------
> > >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> > >> >> >> >> >>
> > >> >> >> >> >
> > >> >> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
> > >> >> >> >> >
> > >> >> >> >> > I would recommend you run apachectl -S to verify that:
> > >> >> >> >> >
> > >> >> >> >> > 1) Your vhosts are properly defined
> > >> >> >> >> > 2) Then examine the configuration of each vhost
> > >> >> >> >> >
> > >> >> >> >> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
> > >> >> >> >>
> > >> >> >> >> ---------------------------------------------------------------------
> > >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> > >> >> >> >>
> > >> >> >> >
> > >> >> >> > The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
> > >> >> >> >
> > >> >> >> > As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
> > >> >> >>
> > >> >> >> ---------------------------------------------------------------------
> > >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> > >> >> >>
> > >> >> >
> > >> >> > Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
> > >> >> >
> > >> >> > Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
> > >> >>
> > >> >> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> >> For additional commands, e-mail: users-help@httpd.apache.org
> > >> >>
> > >> >
> > >> > When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >> For additional commands, e-mail: users-help@httpd.apache.org
> > >>
> > >
> > > It will not; it's inherited from the Server context, and if not present there, uses the built-in default. It's not worth focusing on.
> > >
> > > Again, edit your vhost directly, and read about the context for directives.

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


Re: [users@httpd] ubuntu apache2

Posted by Richard <li...@listmail.innovate.net>.
> Date: Sunday, November 12, 2023 00:09:54 -0500
> From: bruce <ba...@gmail.com>
>
> ok...
> http://157.245.251.134
> --generates the default apache page..
> 
> 
> http://157.245.251.134/wave/
> --generates a 403 forbidden...
>   from nginx!!!  ---- ok.. looks like nginx is/might be interfering
> with this... makes sense... another person had been modifying some
> things and was going to use docker -- which might have nginx as
> well...
> 
> hmm.. so how to get rid of this..
> 
> I did a stop nginx.. it's not in the ps/process tbl...
> 
> so why is it somehow showing up in the url traffic..
> 

Well, while it may be displaying as a "default apache page", that's
really being served from your nginx (Server: nginx/1.24.0 (Ubuntu))
server.

   telnet 157.245.251.134 80
   Trying 157.245.251.134...
   Connected to 157.245.251.134.
   Escape character is '^]'.
   GET / HTTP/1.0

   HTTP/1.1 200 OK
   Server: nginx/1.24.0 (Ubuntu)
   Date: Sun, 12 Nov 2023 17:30:59 GMT
   ...
     <title>Apache2 Ubuntu Default Page: It works</title>

So, it would appear that your httpd server/port 80 setup(s) need to
be "stabilized" so that it's clear what you have answering on port 80.

Use the ps command (man ps) to see the name of the program that is
responding on a port.


[please do not top post - it makes reading the exchanges
unnecessarily difficult.]




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


Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
hi...

ok...
http://157.245.251.134
--generates the default apache page..


http://157.245.251.134/wave/
--generates a 403 forbidden...
  from nginx!!!  ---- ok.. looks like nginx is/might be interfering
with this... makes sense... another person had been modifying some
things and was going to use docker -- which might have nginx as
well...

hmm.. so how to get rid of this..

I did a stop nginx.. it's not in the ps/process tbl...

so why is it somehow showing up in the url traffic..


On Sat, Nov 11, 2023 at 11:16 PM bruce <ba...@gmail.com> wrote:
>
> hi..
>
> /etc/apache2# cat /etc/apache2/sites-available/wave.conf
> <VirtualHost *:80>
>     ServerAdmin foo@yahoo.com
>     ServerName  161.35.5.174
>     ServerAlias temp
>     DocumentRoot   /var/www/html/wave/wave/public
>
>     DirectoryIndex index.php /public/index.php
>
>     <Directory    /var/www/html/wave/wave/public>
>             #Options Indexes FollowSymLinks MultiViews
>             Options +FollowSymlinks
>             AllowOverride All
>             #Order allow,deny
>             #allow from all
>             Require all granted
>     </Directory>
>
>     LogLevel debug
>     ErrorLog ${APACHE_LOG_DIR}/error.log
>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> </VirtualHost>
>
> is the only vhost file
>
> cat /etc/apache2/mods-available/alias.conf
> Alias /icons/ "/usr/share/apache2/icons/"
> Alias /wave/ "/var/www/html/wave"
> #Alias /wave/ "/var/www/html/wave/public"
>
>
> <Directory "/usr/share/apache2/icons">
>     Options FollowSymlinks
>     AllowOverride None
>     Require all granted
> </Directory>
> --------------------------------------------
>
> is where I was trying to test the alias...
>
> systemctl restart apache2  --- runs ok...
>
> and apachectl -S
> still gives the default DocumentRoot  !!
>
> I'm not seeing my errors..
>
>
> On Sat, Nov 11, 2023 at 10:45 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:
> >>
> >> Weird....
> >>
> >> Seems the "DocumentRoot" as displayed in
> >> apachectl -S
> >> AH00558: apache2: Could not reliably determine the server's fully
> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> >> globally to suppress this message
> >> VirtualHost configuration:
> >> *:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
> >> ServerRoot: "/etc/apache2"
> >> Main DocumentRoot: "/var/www/html"  <<<<<
> >>
> >> never gets changed regardless of what I do with "wave.conf" in the
> >> /etc/apache2/sites-available/wave.conf
> >>
> >> Researching the 'net.. seems others have experienced the same issue...
> >>
> >> just weird..
> >>
> >>
> >>
> >>
> >> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
> >> >>
> >> >> I wasnt sure if servername is optional, or used. Since I have no
> >> >> domain/server, I'm assuming I can the use the test ipAddress..
> >> >>
> >> >> still testing!
> >> >>
> >> >> thanks
> >> >>
> >> >> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
> >> >> >>
> >> >> >> arrggg..
> >> >> >>
> >> >> >> Ok. something's going on that I'm missing..
> >> >> >>
> >> >> >> I changed the wave.conf in the /etc/apache/sites-available
> >> >> >> /etc/apache2/sites-enabled
> >> >> >>
> >> >> >> I actually renamed the file to wave.conf1
> >> >> >> I did the a2dissites *.conf as well as stopped/restarted apache2
> >> >> >>
> >> >> >> I then did
> >> >> >>  apachectl -S
> >> >> >> AH00558: apache2: Could not reliably determine the server's fully
> >> >> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> >> >> >> globally to suppress this message
> >> >> >> VirtualHost configuration:
> >> >> >> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
> >> >> >> ServerRoot: "/etc/apache2"
> >> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> >> >> Main ErrorLog: "/var/log/apache2/error.log"
> >> >> >> Mutex mpm-accept: using_defaults
> >> >> >> Mutex watchdog-callback: using_defaults
> >> >> >> Mutex rewrite-map: using_defaults
> >> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default
> >> >> >> PidFile: "/var/run/apache2/apache2.pid"
> >> >> >> Define: DUMP_VHOSTS
> >> >> >> Define: DUMP_RUN_CFG
> >> >> >> User: name="www-data" id=33
> >> >> >> Group: name="www-data" id=33
> >> >> >>
> >> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> >> >> and I get this as the default... where/why is this set?
> >> >> >>
> >> >> >> did a "find" and only saw it in the /etc/apache/* files I had
> >> >> >> renamed.. there are no *.conf for the testing... (for now..)
> >> >> >>
> >> >> >> any thoughts/ideas!
> >> >> >>
> >> >> >>
> >> >> >> thanks
> >> >> >>
> >> >> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> >> >> >> >>
> >> >> >> >> Thanks..
> >> >> >> >>
> >> >> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
> >> >> >> >>
> >> >> >> >> Pretty sure this is simple.. but can't see what's missing...
> >> >> >> >>
> >> >> >> >> thanks
> >> >> >> >>
> >> >> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi Frank!!
> >> >> >> >> >>
> >> >> >> >> >> thanks for the reply.
> >> >> >> >> >>
> >> >> >> >> >> If you don't mind.. here's my setup
> >> >> >> >> >> ubuntu -- apache2
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> /etc/apache2/mods-available/alias.conf
> >> >> >> >> >> ------------------------------------------------------------------
> >> >> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
> >> >> >> >> >> #Alias /wave/ "/var/www/html/wave"
> >> >> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
> >> >> >> >> >>
> >> >> >> >> >> <Directory "/usr/share/apache2/icons">
> >> >> >> >> >>     Options FollowSymlinks
> >> >> >> >> >>     AllowOverride None
> >> >> >> >> >>     Require all granted
> >> >> >> >> >> </Directory>
> >> >> >> >> >>
> >> >> >> >> >> -----------------------------------------------------------
> >> >> >> >> >> ls -al /var/www/html/wave/wave/public
> >> >> >> >> >>  www-data:www-data  (775)
> >> >> >> >> >>
> >> >> >> >> >> ls -al /var/www/html/wave/wave/storage
> >> >> >> >> >>  www-data:www-data  (775)
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> /etc/apache2/sites-available/wave
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> ls -al /etc/apache2/sites-available
> >> >> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >> >> >> >> >>
> >> >> >> >> >> cat /etc/apache2/sites-available/wave.conf
> >> >> >> >> >> <VirtualHost *:80>
> >> >> >> >> >>     ServerAdmin admin@example.com
> >> >> >> >> >>     ServerName  temp
> >> >> >> >> >>     ServerAlias temp
> >> >> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
> >> >> >> >> >>
> >> >> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
> >> >> >> >> >>             Options Indexes FollowSymLinks MultiViews
> >> >> >> >> >>             AllowOverride All
> >> >> >> >> >>             Order allow,deny
> >> >> >> >> >>             allow from all
> >> >> >> >> >>             Require all granted
> >> >> >> >> >>     </Directory>
> >> >> >> >> >>
> >> >> >> >> >>     LogLevel debug
> >> >> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> >> >> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> >> >> >> >> >> </VirtualHost>
> >> >> >> >> >>
> >> >> >> >> >> ----------------------------------------------------------------------------------------------------
> >> >> >> >> >>
> >> >> >> >> >> and then simply run
> >> >> >> >> >>     a2ensite wave.conf
> >> >> >> >> >>     service apache2 reload
> >> >> >> >> >>     systemctl restart apache2
> >> >> >> >> >>
> >> >> >> >> >> to restart apache...
> >> >> >> >> >>
> >> >> >> >> >> and the test site
> >> >> >> >> >>  http://161.35.5.174/wave
> >> >> >> >> >>
> >> >> >> >> >> should appear??
> >> >> >> >> >>
> >> >> >> >> >> Is there anything else you see that I need to implement?
> >> >> >> >> >>
> >> >> >> >> >> thanks
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> Hi.
> >> >> >> >> >> >>
> >> >> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
> >> >> >> >> >> >>
> >> >> >> >> >> >> where I have a laravel/php setup
> >> >> >> >> >> >>  /var/www/html/foo/foo/public <<<
> >> >> >> >> >> >>
> >> >> >> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
> >> >> >> >> >> >> /etc/apache2/conf-availables/alias.conf
> >> >> >> >> >> >> /etc/apache2/sites-available/foo
> >> >> >> >> >> >>
> >> >> >> >> >> >> and the base httpd.conf
> >> >> >> >> >> >>
> >> >> >> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
> >> >> >> >> >> >>
> >> >> >> >> >> >> Anyone have a solid example of how this should be put together, the
> >> >> >> >> >> >> steps required.
> >> >> >> >> >> >>
> >> >> >> >> >> >> I seem to be getting an index list.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> At the same time, once this works, I'm going to also "test/try" to get
> >> >> >> >> >> >> a javascript app running that can be viewed/displayed from the same
> >> >> >> >> >> >> test server.
> >> >> >> >> >> >>
> >> >> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
> >> >> >> >> >> >> want to look at the dir/tree/files.
> >> >> >> >> >> >>
> >> >> >> >> >> >> thanks
> >> >> >> >> >> >>
> >> >> >> >> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
> >> >> >> >> >> >
> >> >> >> >> >> > Finally, you'll need to configure httpd to parse php content, see:
> >> >> >> >> >> >
> >> >> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
> >> >> >> >> >
> >> >> >> >> > I would recommend you run apachectl -S to verify that:
> >> >> >> >> >
> >> >> >> >> > 1) Your vhosts are properly defined
> >> >> >> >> > 2) Then examine the configuration of each vhost
> >> >> >> >> >
> >> >> >> >> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
> >> >> >> >>
> >> >> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >> >>
> >> >> >> >
> >> >> >> > The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
> >> >> >> >
> >> >> >> > As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
> >> >> >>
> >> >> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >>
> >> >> >
> >> >> > Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
> >> >> >
> >> >> > Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >
> >> > When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > It will not; it's inherited from the Server context, and if not present there, uses the built-in default. It's not worth focusing on.
> >
> > Again, edit your vhost directly, and read about the context for directives.

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


Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
hi..

/etc/apache2# cat /etc/apache2/sites-available/wave.conf
<VirtualHost *:80>
    ServerAdmin foo@yahoo.com
    ServerName  161.35.5.174
    ServerAlias temp
    DocumentRoot   /var/www/html/wave/wave/public

    DirectoryIndex index.php /public/index.php

    <Directory    /var/www/html/wave/wave/public>
            #Options Indexes FollowSymLinks MultiViews
            Options +FollowSymlinks
            AllowOverride All
            #Order allow,deny
            #allow from all
            Require all granted
    </Directory>

    LogLevel debug
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

is the only vhost file

cat /etc/apache2/mods-available/alias.conf
Alias /icons/ "/usr/share/apache2/icons/"
Alias /wave/ "/var/www/html/wave"
#Alias /wave/ "/var/www/html/wave/public"


<Directory "/usr/share/apache2/icons">
    Options FollowSymlinks
    AllowOverride None
    Require all granted
</Directory>
--------------------------------------------

is where I was trying to test the alias...

systemctl restart apache2  --- runs ok...

and apachectl -S
still gives the default DocumentRoot  !!

I'm not seeing my errors..


On Sat, Nov 11, 2023 at 10:45 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:
>>
>> Weird....
>>
>> Seems the "DocumentRoot" as displayed in
>> apachectl -S
>> AH00558: apache2: Could not reliably determine the server's fully
>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>> globally to suppress this message
>> VirtualHost configuration:
>> *:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
>> ServerRoot: "/etc/apache2"
>> Main DocumentRoot: "/var/www/html"  <<<<<
>>
>> never gets changed regardless of what I do with "wave.conf" in the
>> /etc/apache2/sites-available/wave.conf
>>
>> Researching the 'net.. seems others have experienced the same issue...
>>
>> just weird..
>>
>>
>>
>>
>> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
>> >
>> >
>> >
>> > On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
>> >>
>> >> I wasnt sure if servername is optional, or used. Since I have no
>> >> domain/server, I'm assuming I can the use the test ipAddress..
>> >>
>> >> still testing!
>> >>
>> >> thanks
>> >>
>> >> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
>> >> >
>> >> >
>> >> >
>> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
>> >> >>
>> >> >> arrggg..
>> >> >>
>> >> >> Ok. something's going on that I'm missing..
>> >> >>
>> >> >> I changed the wave.conf in the /etc/apache/sites-available
>> >> >> /etc/apache2/sites-enabled
>> >> >>
>> >> >> I actually renamed the file to wave.conf1
>> >> >> I did the a2dissites *.conf as well as stopped/restarted apache2
>> >> >>
>> >> >> I then did
>> >> >>  apachectl -S
>> >> >> AH00558: apache2: Could not reliably determine the server's fully
>> >> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>> >> >> globally to suppress this message
>> >> >> VirtualHost configuration:
>> >> >> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
>> >> >> ServerRoot: "/etc/apache2"
>> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> >> >> Main ErrorLog: "/var/log/apache2/error.log"
>> >> >> Mutex mpm-accept: using_defaults
>> >> >> Mutex watchdog-callback: using_defaults
>> >> >> Mutex rewrite-map: using_defaults
>> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default
>> >> >> PidFile: "/var/run/apache2/apache2.pid"
>> >> >> Define: DUMP_VHOSTS
>> >> >> Define: DUMP_RUN_CFG
>> >> >> User: name="www-data" id=33
>> >> >> Group: name="www-data" id=33
>> >> >>
>> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> >> >> and I get this as the default... where/why is this set?
>> >> >>
>> >> >> did a "find" and only saw it in the /etc/apache/* files I had
>> >> >> renamed.. there are no *.conf for the testing... (for now..)
>> >> >>
>> >> >> any thoughts/ideas!
>> >> >>
>> >> >>
>> >> >> thanks
>> >> >>
>> >> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
>> >> >> >>
>> >> >> >> Thanks..
>> >> >> >>
>> >> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
>> >> >> >>
>> >> >> >> Pretty sure this is simple.. but can't see what's missing...
>> >> >> >>
>> >> >> >> thanks
>> >> >> >>
>> >> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>> >> >> >> >>
>> >> >> >> >> Hi Frank!!
>> >> >> >> >>
>> >> >> >> >> thanks for the reply.
>> >> >> >> >>
>> >> >> >> >> If you don't mind.. here's my setup
>> >> >> >> >> ubuntu -- apache2
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> /etc/apache2/mods-available/alias.conf
>> >> >> >> >> ------------------------------------------------------------------
>> >> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
>> >> >> >> >> #Alias /wave/ "/var/www/html/wave"
>> >> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
>> >> >> >> >>
>> >> >> >> >> <Directory "/usr/share/apache2/icons">
>> >> >> >> >>     Options FollowSymlinks
>> >> >> >> >>     AllowOverride None
>> >> >> >> >>     Require all granted
>> >> >> >> >> </Directory>
>> >> >> >> >>
>> >> >> >> >> -----------------------------------------------------------
>> >> >> >> >> ls -al /var/www/html/wave/wave/public
>> >> >> >> >>  www-data:www-data  (775)
>> >> >> >> >>
>> >> >> >> >> ls -al /var/www/html/wave/wave/storage
>> >> >> >> >>  www-data:www-data  (775)
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> /etc/apache2/sites-available/wave
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> ls -al /etc/apache2/sites-available
>> >> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>> >> >> >> >>
>> >> >> >> >> cat /etc/apache2/sites-available/wave.conf
>> >> >> >> >> <VirtualHost *:80>
>> >> >> >> >>     ServerAdmin admin@example.com
>> >> >> >> >>     ServerName  temp
>> >> >> >> >>     ServerAlias temp
>> >> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
>> >> >> >> >>
>> >> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
>> >> >> >> >>             Options Indexes FollowSymLinks MultiViews
>> >> >> >> >>             AllowOverride All
>> >> >> >> >>             Order allow,deny
>> >> >> >> >>             allow from all
>> >> >> >> >>             Require all granted
>> >> >> >> >>     </Directory>
>> >> >> >> >>
>> >> >> >> >>     LogLevel debug
>> >> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
>> >> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>> >> >> >> >> </VirtualHost>
>> >> >> >> >>
>> >> >> >> >> ----------------------------------------------------------------------------------------------------
>> >> >> >> >>
>> >> >> >> >> and then simply run
>> >> >> >> >>     a2ensite wave.conf
>> >> >> >> >>     service apache2 reload
>> >> >> >> >>     systemctl restart apache2
>> >> >> >> >>
>> >> >> >> >> to restart apache...
>> >> >> >> >>
>> >> >> >> >> and the test site
>> >> >> >> >>  http://161.35.5.174/wave
>> >> >> >> >>
>> >> >> >> >> should appear??
>> >> >> >> >>
>> >> >> >> >> Is there anything else you see that I need to implement?
>> >> >> >> >>
>> >> >> >> >> thanks
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> Hi.
>> >> >> >> >> >>
>> >> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
>> >> >> >> >> >>
>> >> >> >> >> >> where I have a laravel/php setup
>> >> >> >> >> >>  /var/www/html/foo/foo/public <<<
>> >> >> >> >> >>
>> >> >> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> >> >> >> >> >> /etc/apache2/conf-availables/alias.conf
>> >> >> >> >> >> /etc/apache2/sites-available/foo
>> >> >> >> >> >>
>> >> >> >> >> >> and the base httpd.conf
>> >> >> >> >> >>
>> >> >> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
>> >> >> >> >> >>
>> >> >> >> >> >> Anyone have a solid example of how this should be put together, the
>> >> >> >> >> >> steps required.
>> >> >> >> >> >>
>> >> >> >> >> >> I seem to be getting an index list.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> At the same time, once this works, I'm going to also "test/try" to get
>> >> >> >> >> >> a javascript app running that can be viewed/displayed from the same
>> >> >> >> >> >> test server.
>> >> >> >> >> >>
>> >> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
>> >> >> >> >> >> want to look at the dir/tree/files.
>> >> >> >> >> >>
>> >> >> >> >> >> thanks
>> >> >> >> >> >>
>> >> >> >> >> >> ---------------------------------------------------------------------
>> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>> >> >> >> >> >
>> >> >> >> >> > Finally, you'll need to configure httpd to parse php content, see:
>> >> >> >> >> >
>> >> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
>> >> >> >> >
>> >> >> >> > I would recommend you run apachectl -S to verify that:
>> >> >> >> >
>> >> >> >> > 1) Your vhosts are properly defined
>> >> >> >> > 2) Then examine the configuration of each vhost
>> >> >> >> >
>> >> >> >> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
>> >> >> >>
>> >> >> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >>
>> >> >> >
>> >> >> > The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
>> >> >> >
>> >> >> > As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >>
>> >> >
>> >> > Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
>> >> >
>> >> > Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >
>> > When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> It will not; it's inherited from the Server context, and if not present there, uses the built-in default. It's not worth focusing on.
>
> Again, edit your vhost directly, and read about the context for directives.

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


Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 10:37 PM bruce <ba...@gmail.com> wrote:

> Weird....
>
> Seems the "DocumentRoot" as displayed in
> apachectl -S
> AH00558: apache2: Could not reliably determine the server's fully
> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> globally to suppress this message
> VirtualHost configuration:
> *:80                   161.35.5.174
> (/etc/apache2/sites-enabled/wave.conf:1)
> ServerRoot: "/etc/apache2"
> Main DocumentRoot: "/var/www/html"  <<<<<
>
> never gets changed regardless of what I do with "wave.conf" in the
> /etc/apache2/sites-available/wave.conf
>
> Researching the 'net.. seems others have experienced the same issue...
>
> just weird..
>
>
>
>
> On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
> >>
> >> I wasnt sure if servername is optional, or used. Since I have no
> >> domain/server, I'm assuming I can the use the test ipAddress..
> >>
> >> still testing!
> >>
> >> thanks
> >>
> >> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
> >> >>
> >> >> arrggg..
> >> >>
> >> >> Ok. something's going on that I'm missing..
> >> >>
> >> >> I changed the wave.conf in the /etc/apache/sites-available
> >> >> /etc/apache2/sites-enabled
> >> >>
> >> >> I actually renamed the file to wave.conf1
> >> >> I did the a2dissites *.conf as well as stopped/restarted apache2
> >> >>
> >> >> I then did
> >> >>  apachectl -S
> >> >> AH00558: apache2: Could not reliably determine the server's fully
> >> >> qualified domain name, using 127.0.1.1. Set the 'ServerName'
> directive
> >> >> globally to suppress this message
> >> >> VirtualHost configuration:
> >> >> *:80                   127.0.1.1
> (/etc/apache2/sites-enabled/wave.conf:1)
> >> >> ServerRoot: "/etc/apache2"
> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> >> Main ErrorLog: "/var/log/apache2/error.log"
> >> >> Mutex mpm-accept: using_defaults
> >> >> Mutex watchdog-callback: using_defaults
> >> >> Mutex rewrite-map: using_defaults
> >> >> Mutex default: dir="/var/run/apache2/" mechanism=default
> >> >> PidFile: "/var/run/apache2/apache2.pid"
> >> >> Define: DUMP_VHOSTS
> >> >> Define: DUMP_RUN_CFG
> >> >> User: name="www-data" id=33
> >> >> Group: name="www-data" id=33
> >> >>
> >> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> >> and I get this as the default... where/why is this set?
> >> >>
> >> >> did a "find" and only saw it in the /etc/apache/* files I had
> >> >> renamed.. there are no *.conf for the testing... (for now..)
> >> >>
> >> >> any thoughts/ideas!
> >> >>
> >> >>
> >> >> thanks
> >> >>
> >> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> >> >> >>
> >> >> >> Thanks..
> >> >> >>
> >> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4..
> could you clarify?
> >> >> >>
> >> >> >> Pretty sure this is simple.. but can't see what's missing...
> >> >> >>
> >> >> >> thanks
> >> >> >>
> >> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com>
> wrote:
> >> >> >> >>
> >> >> >> >> Hi Frank!!
> >> >> >> >>
> >> >> >> >> thanks for the reply.
> >> >> >> >>
> >> >> >> >> If you don't mind.. here's my setup
> >> >> >> >> ubuntu -- apache2
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> /etc/apache2/mods-available/alias.conf
> >> >> >> >>
> ------------------------------------------------------------------
> >> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
> >> >> >> >> #Alias /wave/ "/var/www/html/wave"
> >> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
> >> >> >> >>
> >> >> >> >> <Directory "/usr/share/apache2/icons">
> >> >> >> >>     Options FollowSymlinks
> >> >> >> >>     AllowOverride None
> >> >> >> >>     Require all granted
> >> >> >> >> </Directory>
> >> >> >> >>
> >> >> >> >> -----------------------------------------------------------
> >> >> >> >> ls -al /var/www/html/wave/wave/public
> >> >> >> >>  www-data:www-data  (775)
> >> >> >> >>
> >> >> >> >> ls -al /var/www/html/wave/wave/storage
> >> >> >> >>  www-data:www-data  (775)
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> /etc/apache2/sites-available/wave
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> ls -al /etc/apache2/sites-available
> >> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >> >> >> >>
> >> >> >> >> cat /etc/apache2/sites-available/wave.conf
> >> >> >> >> <VirtualHost *:80>
> >> >> >> >>     ServerAdmin admin@example.com
> >> >> >> >>     ServerName  temp
> >> >> >> >>     ServerAlias temp
> >> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
> >> >> >> >>
> >> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
> >> >> >> >>             Options Indexes FollowSymLinks MultiViews
> >> >> >> >>             AllowOverride All
> >> >> >> >>             Order allow,deny
> >> >> >> >>             allow from all
> >> >> >> >>             Require all granted
> >> >> >> >>     </Directory>
> >> >> >> >>
> >> >> >> >>     LogLevel debug
> >> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> >> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> >> >> >> >> </VirtualHost>
> >> >> >> >>
> >> >> >> >>
> ----------------------------------------------------------------------------------------------------
> >> >> >> >>
> >> >> >> >> and then simply run
> >> >> >> >>     a2ensite wave.conf
> >> >> >> >>     service apache2 reload
> >> >> >> >>     systemctl restart apache2
> >> >> >> >>
> >> >> >> >> to restart apache...
> >> >> >> >>
> >> >> >> >> and the test site
> >> >> >> >>  http://161.35.5.174/wave
> >> >> >> >>
> >> >> >> >> should appear??
> >> >> >> >>
> >> >> >> >> Is there anything else you see that I need to implement?
> >> >> >> >>
> >> >> >> >> thanks
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <
> thumbs@apache.org> wrote:
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com>
> wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi.
> >> >> >> >> >>
> >> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
> >> >> >> >> >>
> >> >> >> >> >> where I have a laravel/php setup
> >> >> >> >> >>  /var/www/html/foo/foo/public <<<
> >> >> >> >> >>
> >> >> >> >> >> As far as I can tell, there should be an "alias.conf" --
> foo.conf in the
> >> >> >> >> >> /etc/apache2/conf-availables/alias.conf
> >> >> >> >> >> /etc/apache2/sites-available/foo
> >> >> >> >> >>
> >> >> >> >> >> and the base httpd.conf
> >> >> >> >> >>
> >> >> >> >> >> I think there needs to be "rewrite" in there somewhere as
> well.
> >> >> >> >> >>
> >> >> >> >> >> Anyone have a solid example of how this should be put
> together, the
> >> >> >> >> >> steps required.
> >> >> >> >> >>
> >> >> >> >> >> I seem to be getting an index list.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> At the same time, once this works, I'm going to also
> "test/try" to get
> >> >> >> >> >> a javascript app running that can be viewed/displayed from
> the same
> >> >> >> >> >> test server.
> >> >> >> >> >>
> >> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible
> if you
> >> >> >> >> >> want to look at the dir/tree/files.
> >> >> >> >> >>
> >> >> >> >> >> thanks
> >> >> >> >> >>
> >> >> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> >> For additional commands, e-mail:
> users-help@httpd.apache.org
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in
> your vhost. Why do you think you need to use mod_rewrite, as well?
> >> >> >> >> >
> >> >> >> >> > Finally, you'll need to configure httpd to parse php
> content, see:
> >> >> >> >> >
> >> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >> >>
> >> >> >> >
> >> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
> >> >> >> >
> >> >> >> > I would recommend you run apachectl -S to verify that:
> >> >> >> >
> >> >> >> > 1) Your vhosts are properly defined
> >> >> >> > 2) Then examine the configuration of each vhost
> >> >> >> >
> >> >> >> > I would also certainly not use 2.2 authz directives, so I would
> stop reading whatever site or howto recommended that.
> >> >> >>
> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >>
> >> >> >
> >> >> > The Order/Allow/Deny directives should not be used any more, and
> you should unload the mod_access_compat module as well.
> >> >> >
> >> >> > As for seeing the directory listing, you are probably missing the
> DirectoryIndex directive.
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >
> >> > Since you have a single vhost on port 80, every single http://
> request will use it. The main DocumentRoot does not apply, unless you use
> another port with your request, i.e. 443.
> >> >
> >> > Next, edit your existing vhost, and make sure that the ServerName /
> DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other
> directives you need.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > When unsure, always set the ServerName. It would break name-based vhosts
> when you run into duplicates.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
It will not; it's inherited from the Server context, and if not present
there, uses the built-in default. It's not worth focusing on.

Again, edit your vhost directly, and read about the context for directives.

Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
Weird....

Seems the "DocumentRoot" as displayed in
apachectl -S
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
VirtualHost configuration:
*:80                   161.35.5.174 (/etc/apache2/sites-enabled/wave.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"  <<<<<

never gets changed regardless of what I do with "wave.conf" in the
/etc/apache2/sites-available/wave.conf

Researching the 'net.. seems others have experienced the same issue...

just weird..




On Sat, Nov 11, 2023 at 9:43 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:
>>
>> I wasnt sure if servername is optional, or used. Since I have no
>> domain/server, I'm assuming I can the use the test ipAddress..
>>
>> still testing!
>>
>> thanks
>>
>> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
>> >
>> >
>> >
>> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
>> >>
>> >> arrggg..
>> >>
>> >> Ok. something's going on that I'm missing..
>> >>
>> >> I changed the wave.conf in the /etc/apache/sites-available
>> >> /etc/apache2/sites-enabled
>> >>
>> >> I actually renamed the file to wave.conf1
>> >> I did the a2dissites *.conf as well as stopped/restarted apache2
>> >>
>> >> I then did
>> >>  apachectl -S
>> >> AH00558: apache2: Could not reliably determine the server's fully
>> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>> >> globally to suppress this message
>> >> VirtualHost configuration:
>> >> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
>> >> ServerRoot: "/etc/apache2"
>> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> >> Main ErrorLog: "/var/log/apache2/error.log"
>> >> Mutex mpm-accept: using_defaults
>> >> Mutex watchdog-callback: using_defaults
>> >> Mutex rewrite-map: using_defaults
>> >> Mutex default: dir="/var/run/apache2/" mechanism=default
>> >> PidFile: "/var/run/apache2/apache2.pid"
>> >> Define: DUMP_VHOSTS
>> >> Define: DUMP_RUN_CFG
>> >> User: name="www-data" id=33
>> >> Group: name="www-data" id=33
>> >>
>> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> >> and I get this as the default... where/why is this set?
>> >>
>> >> did a "find" and only saw it in the /etc/apache/* files I had
>> >> renamed.. there are no *.conf for the testing... (for now..)
>> >>
>> >> any thoughts/ideas!
>> >>
>> >>
>> >> thanks
>> >>
>> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >
>> >> >
>> >> >
>> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
>> >> >>
>> >> >> Thanks..
>> >> >>
>> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
>> >> >>
>> >> >> Pretty sure this is simple.. but can't see what's missing...
>> >> >>
>> >> >> thanks
>> >> >>
>> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>> >> >> >>
>> >> >> >> Hi Frank!!
>> >> >> >>
>> >> >> >> thanks for the reply.
>> >> >> >>
>> >> >> >> If you don't mind.. here's my setup
>> >> >> >> ubuntu -- apache2
>> >> >> >>
>> >> >> >>
>> >> >> >> /etc/apache2/mods-available/alias.conf
>> >> >> >> ------------------------------------------------------------------
>> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
>> >> >> >> #Alias /wave/ "/var/www/html/wave"
>> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
>> >> >> >>
>> >> >> >> <Directory "/usr/share/apache2/icons">
>> >> >> >>     Options FollowSymlinks
>> >> >> >>     AllowOverride None
>> >> >> >>     Require all granted
>> >> >> >> </Directory>
>> >> >> >>
>> >> >> >> -----------------------------------------------------------
>> >> >> >> ls -al /var/www/html/wave/wave/public
>> >> >> >>  www-data:www-data  (775)
>> >> >> >>
>> >> >> >> ls -al /var/www/html/wave/wave/storage
>> >> >> >>  www-data:www-data  (775)
>> >> >> >>
>> >> >> >>
>> >> >> >> /etc/apache2/sites-available/wave
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> ls -al /etc/apache2/sites-available
>> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>> >> >> >>
>> >> >> >> cat /etc/apache2/sites-available/wave.conf
>> >> >> >> <VirtualHost *:80>
>> >> >> >>     ServerAdmin admin@example.com
>> >> >> >>     ServerName  temp
>> >> >> >>     ServerAlias temp
>> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
>> >> >> >>
>> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
>> >> >> >>             Options Indexes FollowSymLinks MultiViews
>> >> >> >>             AllowOverride All
>> >> >> >>             Order allow,deny
>> >> >> >>             allow from all
>> >> >> >>             Require all granted
>> >> >> >>     </Directory>
>> >> >> >>
>> >> >> >>     LogLevel debug
>> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
>> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>> >> >> >> </VirtualHost>
>> >> >> >>
>> >> >> >> ----------------------------------------------------------------------------------------------------
>> >> >> >>
>> >> >> >> and then simply run
>> >> >> >>     a2ensite wave.conf
>> >> >> >>     service apache2 reload
>> >> >> >>     systemctl restart apache2
>> >> >> >>
>> >> >> >> to restart apache...
>> >> >> >>
>> >> >> >> and the test site
>> >> >> >>  http://161.35.5.174/wave
>> >> >> >>
>> >> >> >> should appear??
>> >> >> >>
>> >> >> >> Is there anything else you see that I need to implement?
>> >> >> >>
>> >> >> >> thanks
>> >> >> >>
>> >> >> >>
>> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>> >> >> >> >>
>> >> >> >> >> Hi.
>> >> >> >> >>
>> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
>> >> >> >> >>
>> >> >> >> >> where I have a laravel/php setup
>> >> >> >> >>  /var/www/html/foo/foo/public <<<
>> >> >> >> >>
>> >> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> >> >> >> >> /etc/apache2/conf-availables/alias.conf
>> >> >> >> >> /etc/apache2/sites-available/foo
>> >> >> >> >>
>> >> >> >> >> and the base httpd.conf
>> >> >> >> >>
>> >> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
>> >> >> >> >>
>> >> >> >> >> Anyone have a solid example of how this should be put together, the
>> >> >> >> >> steps required.
>> >> >> >> >>
>> >> >> >> >> I seem to be getting an index list.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> At the same time, once this works, I'm going to also "test/try" to get
>> >> >> >> >> a javascript app running that can be viewed/displayed from the same
>> >> >> >> >> test server.
>> >> >> >> >>
>> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
>> >> >> >> >> want to look at the dir/tree/files.
>> >> >> >> >>
>> >> >> >> >> thanks
>> >> >> >> >>
>> >> >> >> >> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>> >> >> >> >
>> >> >> >> > Finally, you'll need to configure httpd to parse php content, see:
>> >> >> >> >
>> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >>
>> >> >> >
>> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
>> >> >> >
>> >> >> > I would recommend you run apachectl -S to verify that:
>> >> >> >
>> >> >> > 1) Your vhosts are properly defined
>> >> >> > 2) Then examine the configuration of each vhost
>> >> >> >
>> >> >> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >>
>> >> >
>> >> > The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
>> >> >
>> >> > As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >
>> > Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
>> >
>> > Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> When unsure, always set the ServerName. It would break name-based vhosts when you run into duplicates.

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


Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 9:25 PM bruce <ba...@gmail.com> wrote:

> I wasnt sure if servername is optional, or used. Since I have no
> domain/server, I'm assuming I can the use the test ipAddress..
>
> still testing!
>
> thanks
>
> On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
> >>
> >> arrggg..
> >>
> >> Ok. something's going on that I'm missing..
> >>
> >> I changed the wave.conf in the /etc/apache/sites-available
> >> /etc/apache2/sites-enabled
> >>
> >> I actually renamed the file to wave.conf1
> >> I did the a2dissites *.conf as well as stopped/restarted apache2
> >>
> >> I then did
> >>  apachectl -S
> >> AH00558: apache2: Could not reliably determine the server's fully
> >> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> >> globally to suppress this message
> >> VirtualHost configuration:
> >> *:80                   127.0.1.1
> (/etc/apache2/sites-enabled/wave.conf:1)
> >> ServerRoot: "/etc/apache2"
> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> Main ErrorLog: "/var/log/apache2/error.log"
> >> Mutex mpm-accept: using_defaults
> >> Mutex watchdog-callback: using_defaults
> >> Mutex rewrite-map: using_defaults
> >> Mutex default: dir="/var/run/apache2/" mechanism=default
> >> PidFile: "/var/run/apache2/apache2.pid"
> >> Define: DUMP_VHOSTS
> >> Define: DUMP_RUN_CFG
> >> User: name="www-data" id=33
> >> Group: name="www-data" id=33
> >>
> >> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> >> and I get this as the default... where/why is this set?
> >>
> >> did a "find" and only saw it in the /etc/apache/* files I had
> >> renamed.. there are no *.conf for the testing... (for now..)
> >>
> >> any thoughts/ideas!
> >>
> >>
> >> thanks
> >>
> >> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> >> >>
> >> >> Thanks..
> >> >>
> >> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could
> you clarify?
> >> >>
> >> >> Pretty sure this is simple.. but can't see what's missing...
> >> >>
> >> >> thanks
> >> >>
> >> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> >> >> >>
> >> >> >> Hi Frank!!
> >> >> >>
> >> >> >> thanks for the reply.
> >> >> >>
> >> >> >> If you don't mind.. here's my setup
> >> >> >> ubuntu -- apache2
> >> >> >>
> >> >> >>
> >> >> >> /etc/apache2/mods-available/alias.conf
> >> >> >> ------------------------------------------------------------------
> >> >> >> Alias /icons/ "/usr/share/apache2/icons/"
> >> >> >> #Alias /wave/ "/var/www/html/wave"
> >> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
> >> >> >>
> >> >> >> <Directory "/usr/share/apache2/icons">
> >> >> >>     Options FollowSymlinks
> >> >> >>     AllowOverride None
> >> >> >>     Require all granted
> >> >> >> </Directory>
> >> >> >>
> >> >> >> -----------------------------------------------------------
> >> >> >> ls -al /var/www/html/wave/wave/public
> >> >> >>  www-data:www-data  (775)
> >> >> >>
> >> >> >> ls -al /var/www/html/wave/wave/storage
> >> >> >>  www-data:www-data  (775)
> >> >> >>
> >> >> >>
> >> >> >> /etc/apache2/sites-available/wave
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> ls -al /etc/apache2/sites-available
> >> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >> >> >>
> >> >> >> cat /etc/apache2/sites-available/wave.conf
> >> >> >> <VirtualHost *:80>
> >> >> >>     ServerAdmin admin@example.com
> >> >> >>     ServerName  temp
> >> >> >>     ServerAlias temp
> >> >> >>      DocumentRoot   /var/www/html/wave/wave/public
> >> >> >>
> >> >> >>     <Directory    /var/www/html/wave/wave/public/>
> >> >> >>             Options Indexes FollowSymLinks MultiViews
> >> >> >>             AllowOverride All
> >> >> >>             Order allow,deny
> >> >> >>             allow from all
> >> >> >>             Require all granted
> >> >> >>     </Directory>
> >> >> >>
> >> >> >>     LogLevel debug
> >> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> >> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> >> >> >> </VirtualHost>
> >> >> >>
> >> >> >>
> ----------------------------------------------------------------------------------------------------
> >> >> >>
> >> >> >> and then simply run
> >> >> >>     a2ensite wave.conf
> >> >> >>     service apache2 reload
> >> >> >>     systemctl restart apache2
> >> >> >>
> >> >> >> to restart apache...
> >> >> >>
> >> >> >> and the test site
> >> >> >>  http://161.35.5.174/wave
> >> >> >>
> >> >> >> should appear??
> >> >> >>
> >> >> >> Is there anything else you see that I need to implement?
> >> >> >>
> >> >> >> thanks
> >> >> >>
> >> >> >>
> >> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com>
> wrote:
> >> >> >> >>
> >> >> >> >> Hi.
> >> >> >> >>
> >> >> >> >> Trying to set up a test http://1.2.3.4/foo
> >> >> >> >>
> >> >> >> >> where I have a laravel/php setup
> >> >> >> >>  /var/www/html/foo/foo/public <<<
> >> >> >> >>
> >> >> >> >> As far as I can tell, there should be an "alias.conf" --
> foo.conf in the
> >> >> >> >> /etc/apache2/conf-availables/alias.conf
> >> >> >> >> /etc/apache2/sites-available/foo
> >> >> >> >>
> >> >> >> >> and the base httpd.conf
> >> >> >> >>
> >> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
> >> >> >> >>
> >> >> >> >> Anyone have a solid example of how this should be put
> together, the
> >> >> >> >> steps required.
> >> >> >> >>
> >> >> >> >> I seem to be getting an index list.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> At the same time, once this works, I'm going to also
> "test/try" to get
> >> >> >> >> a javascript app running that can be viewed/displayed from the
> same
> >> >> >> >> test server.
> >> >> >> >>
> >> >> >> >> The test server is a digitalocean ubuntu, easily accessible if
> you
> >> >> >> >> want to look at the dir/tree/files.
> >> >> >> >>
> >> >> >> >> thanks
> >> >> >> >>
> >> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >> >>
> >> >> >> >
> >> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your
> vhost. Why do you think you need to use mod_rewrite, as well?
> >> >> >> >
> >> >> >> > Finally, you'll need to configure httpd to parse php content,
> see:
> >> >> >> >
> >> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >>
> >> >> >
> >> >> > This isn't really a ubuntu-centric mailing list, to be fair.
> >> >> >
> >> >> > I would recommend you run apachectl -S to verify that:
> >> >> >
> >> >> > 1) Your vhosts are properly defined
> >> >> > 2) Then examine the configuration of each vhost
> >> >> >
> >> >> > I would also certainly not use 2.2 authz directives, so I would
> stop reading whatever site or howto recommended that.
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >
> >> > The Order/Allow/Deny directives should not be used any more, and you
> should unload the mod_access_compat module as well.
> >> >
> >> > As for seeing the directory listing, you are probably missing the
> DirectoryIndex directive.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > Since you have a single vhost on port 80, every single http:// request
> will use it. The main DocumentRoot does not apply, unless you use another
> port with your request, i.e. 443.
> >
> > Next, edit your existing vhost, and make sure that the ServerName /
> DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other
> directives you need.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
When unsure, always set the ServerName. It would break name-based vhosts
when you run into duplicates.

Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
I wasnt sure if servername is optional, or used. Since I have no
domain/server, I'm assuming I can the use the test ipAddress..

still testing!

thanks

On Sat, Nov 11, 2023 at 8:46 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:
>>
>> arrggg..
>>
>> Ok. something's going on that I'm missing..
>>
>> I changed the wave.conf in the /etc/apache/sites-available
>> /etc/apache2/sites-enabled
>>
>> I actually renamed the file to wave.conf1
>> I did the a2dissites *.conf as well as stopped/restarted apache2
>>
>> I then did
>>  apachectl -S
>> AH00558: apache2: Could not reliably determine the server's fully
>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>> globally to suppress this message
>> VirtualHost configuration:
>> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
>> ServerRoot: "/etc/apache2"
>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> Main ErrorLog: "/var/log/apache2/error.log"
>> Mutex mpm-accept: using_defaults
>> Mutex watchdog-callback: using_defaults
>> Mutex rewrite-map: using_defaults
>> Mutex default: dir="/var/run/apache2/" mechanism=default
>> PidFile: "/var/run/apache2/apache2.pid"
>> Define: DUMP_VHOSTS
>> Define: DUMP_RUN_CFG
>> User: name="www-data" id=33
>> Group: name="www-data" id=33
>>
>> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
>> and I get this as the default... where/why is this set?
>>
>> did a "find" and only saw it in the /etc/apache/* files I had
>> renamed.. there are no *.conf for the testing... (for now..)
>>
>> any thoughts/ideas!
>>
>>
>> thanks
>>
>> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
>> >
>> >
>> >
>> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
>> >>
>> >> Thanks..
>> >>
>> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
>> >>
>> >> Pretty sure this is simple.. but can't see what's missing...
>> >>
>> >> thanks
>> >>
>> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>> >> >
>> >> >
>> >> >
>> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>> >> >>
>> >> >> Hi Frank!!
>> >> >>
>> >> >> thanks for the reply.
>> >> >>
>> >> >> If you don't mind.. here's my setup
>> >> >> ubuntu -- apache2
>> >> >>
>> >> >>
>> >> >> /etc/apache2/mods-available/alias.conf
>> >> >> ------------------------------------------------------------------
>> >> >> Alias /icons/ "/usr/share/apache2/icons/"
>> >> >> #Alias /wave/ "/var/www/html/wave"
>> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
>> >> >>
>> >> >> <Directory "/usr/share/apache2/icons">
>> >> >>     Options FollowSymlinks
>> >> >>     AllowOverride None
>> >> >>     Require all granted
>> >> >> </Directory>
>> >> >>
>> >> >> -----------------------------------------------------------
>> >> >> ls -al /var/www/html/wave/wave/public
>> >> >>  www-data:www-data  (775)
>> >> >>
>> >> >> ls -al /var/www/html/wave/wave/storage
>> >> >>  www-data:www-data  (775)
>> >> >>
>> >> >>
>> >> >> /etc/apache2/sites-available/wave
>> >> >>
>> >> >>
>> >> >>
>> >> >> ls -al /etc/apache2/sites-available
>> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>> >> >>
>> >> >> cat /etc/apache2/sites-available/wave.conf
>> >> >> <VirtualHost *:80>
>> >> >>     ServerAdmin admin@example.com
>> >> >>     ServerName  temp
>> >> >>     ServerAlias temp
>> >> >>      DocumentRoot   /var/www/html/wave/wave/public
>> >> >>
>> >> >>     <Directory    /var/www/html/wave/wave/public/>
>> >> >>             Options Indexes FollowSymLinks MultiViews
>> >> >>             AllowOverride All
>> >> >>             Order allow,deny
>> >> >>             allow from all
>> >> >>             Require all granted
>> >> >>     </Directory>
>> >> >>
>> >> >>     LogLevel debug
>> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
>> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>> >> >> </VirtualHost>
>> >> >>
>> >> >> ----------------------------------------------------------------------------------------------------
>> >> >>
>> >> >> and then simply run
>> >> >>     a2ensite wave.conf
>> >> >>     service apache2 reload
>> >> >>     systemctl restart apache2
>> >> >>
>> >> >> to restart apache...
>> >> >>
>> >> >> and the test site
>> >> >>  http://161.35.5.174/wave
>> >> >>
>> >> >> should appear??
>> >> >>
>> >> >> Is there anything else you see that I need to implement?
>> >> >>
>> >> >> thanks
>> >> >>
>> >> >>
>> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>> >> >> >>
>> >> >> >> Hi.
>> >> >> >>
>> >> >> >> Trying to set up a test http://1.2.3.4/foo
>> >> >> >>
>> >> >> >> where I have a laravel/php setup
>> >> >> >>  /var/www/html/foo/foo/public <<<
>> >> >> >>
>> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> >> >> >> /etc/apache2/conf-availables/alias.conf
>> >> >> >> /etc/apache2/sites-available/foo
>> >> >> >>
>> >> >> >> and the base httpd.conf
>> >> >> >>
>> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
>> >> >> >>
>> >> >> >> Anyone have a solid example of how this should be put together, the
>> >> >> >> steps required.
>> >> >> >>
>> >> >> >> I seem to be getting an index list.
>> >> >> >>
>> >> >> >>
>> >> >> >> At the same time, once this works, I'm going to also "test/try" to get
>> >> >> >> a javascript app running that can be viewed/displayed from the same
>> >> >> >> test server.
>> >> >> >>
>> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
>> >> >> >> want to look at the dir/tree/files.
>> >> >> >>
>> >> >> >> thanks
>> >> >> >>
>> >> >> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >> >>
>> >> >> >
>> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>> >> >> >
>> >> >> > Finally, you'll need to configure httpd to parse php content, see:
>> >> >> >
>> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >>
>> >> >
>> >> > This isn't really a ubuntu-centric mailing list, to be fair.
>> >> >
>> >> > I would recommend you run apachectl -S to verify that:
>> >> >
>> >> > 1) Your vhosts are properly defined
>> >> > 2) Then examine the configuration of each vhost
>> >> >
>> >> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >
>> > The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
>> >
>> > As for seeing the directory listing, you are probably missing the DirectoryIndex directive.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> Since you have a single vhost on port 80, every single http:// request will use it. The main DocumentRoot does not apply, unless you use another port with your request, i.e. 443.
>
> Next, edit your existing vhost, and make sure that the ServerName / DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other directives you need.

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


Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 8:41 PM bruce <ba...@gmail.com> wrote:

> arrggg..
>
> Ok. something's going on that I'm missing..
>
> I changed the wave.conf in the /etc/apache/sites-available
> /etc/apache2/sites-enabled
>
> I actually renamed the file to wave.conf1
> I did the a2dissites *.conf as well as stopped/restarted apache2
>
> I then did
>  apachectl -S
> AH00558: apache2: Could not reliably determine the server's fully
> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
> globally to suppress this message
> VirtualHost configuration:
> *:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
> ServerRoot: "/etc/apache2"
> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> Main ErrorLog: "/var/log/apache2/error.log"
> Mutex mpm-accept: using_defaults
> Mutex watchdog-callback: using_defaults
> Mutex rewrite-map: using_defaults
> Mutex default: dir="/var/run/apache2/" mechanism=default
> PidFile: "/var/run/apache2/apache2.pid"
> Define: DUMP_VHOSTS
> Define: DUMP_RUN_CFG
> User: name="www-data" id=33
> Group: name="www-data" id=33
>
> Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
> and I get this as the default... where/why is this set?
>
> did a "find" and only saw it in the /etc/apache/* files I had
> renamed.. there are no *.conf for the testing... (for now..)
>
> any thoughts/ideas!
>
>
> thanks
>
> On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
> >>
> >> Thanks..
> >>
> >> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you
> clarify?
> >>
> >> Pretty sure this is simple.. but can't see what's missing...
> >>
> >> thanks
> >>
> >> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> >> >>
> >> >> Hi Frank!!
> >> >>
> >> >> thanks for the reply.
> >> >>
> >> >> If you don't mind.. here's my setup
> >> >> ubuntu -- apache2
> >> >>
> >> >>
> >> >> /etc/apache2/mods-available/alias.conf
> >> >> ------------------------------------------------------------------
> >> >> Alias /icons/ "/usr/share/apache2/icons/"
> >> >> #Alias /wave/ "/var/www/html/wave"
> >> >> Alias /wave/ "/var/www/html/wave/wave/public"
> >> >>
> >> >> <Directory "/usr/share/apache2/icons">
> >> >>     Options FollowSymlinks
> >> >>     AllowOverride None
> >> >>     Require all granted
> >> >> </Directory>
> >> >>
> >> >> -----------------------------------------------------------
> >> >> ls -al /var/www/html/wave/wave/public
> >> >>  www-data:www-data  (775)
> >> >>
> >> >> ls -al /var/www/html/wave/wave/storage
> >> >>  www-data:www-data  (775)
> >> >>
> >> >>
> >> >> /etc/apache2/sites-available/wave
> >> >>
> >> >>
> >> >>
> >> >> ls -al /etc/apache2/sites-available
> >> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >> >>
> >> >> cat /etc/apache2/sites-available/wave.conf
> >> >> <VirtualHost *:80>
> >> >>     ServerAdmin admin@example.com
> >> >>     ServerName  temp
> >> >>     ServerAlias temp
> >> >>      DocumentRoot   /var/www/html/wave/wave/public
> >> >>
> >> >>     <Directory    /var/www/html/wave/wave/public/>
> >> >>             Options Indexes FollowSymLinks MultiViews
> >> >>             AllowOverride All
> >> >>             Order allow,deny
> >> >>             allow from all
> >> >>             Require all granted
> >> >>     </Directory>
> >> >>
> >> >>     LogLevel debug
> >> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> >> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> >> >> </VirtualHost>
> >> >>
> >> >>
> ----------------------------------------------------------------------------------------------------
> >> >>
> >> >> and then simply run
> >> >>     a2ensite wave.conf
> >> >>     service apache2 reload
> >> >>     systemctl restart apache2
> >> >>
> >> >> to restart apache...
> >> >>
> >> >> and the test site
> >> >>  http://161.35.5.174/wave
> >> >>
> >> >> should appear??
> >> >>
> >> >> Is there anything else you see that I need to implement?
> >> >>
> >> >> thanks
> >> >>
> >> >>
> >> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> >> >> >>
> >> >> >> Hi.
> >> >> >>
> >> >> >> Trying to set up a test http://1.2.3.4/foo
> >> >> >>
> >> >> >> where I have a laravel/php setup
> >> >> >>  /var/www/html/foo/foo/public <<<
> >> >> >>
> >> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf
> in the
> >> >> >> /etc/apache2/conf-availables/alias.conf
> >> >> >> /etc/apache2/sites-available/foo
> >> >> >>
> >> >> >> and the base httpd.conf
> >> >> >>
> >> >> >> I think there needs to be "rewrite" in there somewhere as well.
> >> >> >>
> >> >> >> Anyone have a solid example of how this should be put together,
> the
> >> >> >> steps required.
> >> >> >>
> >> >> >> I seem to be getting an index list.
> >> >> >>
> >> >> >>
> >> >> >> At the same time, once this works, I'm going to also "test/try"
> to get
> >> >> >> a javascript app running that can be viewed/displayed from the
> same
> >> >> >> test server.
> >> >> >>
> >> >> >> The test server is a digitalocean ubuntu, easily accessible if you
> >> >> >> want to look at the dir/tree/files.
> >> >> >>
> >> >> >> thanks
> >> >> >>
> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >> >>
> >> >> >
> >> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your
> vhost. Why do you think you need to use mod_rewrite, as well?
> >> >> >
> >> >> > Finally, you'll need to configure httpd to parse php content, see:
> >> >> >
> >> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >> >> >
> >> >> >
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >
> >> > This isn't really a ubuntu-centric mailing list, to be fair.
> >> >
> >> > I would recommend you run apachectl -S to verify that:
> >> >
> >> > 1) Your vhosts are properly defined
> >> > 2) Then examine the configuration of each vhost
> >> >
> >> > I would also certainly not use 2.2 authz directives, so I would stop
> reading whatever site or howto recommended that.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > The Order/Allow/Deny directives should not be used any more, and you
> should unload the mod_access_compat module as well.
> >
> > As for seeing the directory listing, you are probably missing the
> DirectoryIndex directive.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Since you have a single vhost on port 80, every single http:// request will
use it. The main DocumentRoot does not apply, unless you use another port
with your request, i.e. 443.

Next, edit your existing vhost, and make sure that the ServerName /
DocumentRoot is set properly, as well as the DirectoryIndex / Alias / other
directives you need.

Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
arrggg..

Ok. something's going on that I'm missing..

I changed the wave.conf in the /etc/apache/sites-available
/etc/apache2/sites-enabled

I actually renamed the file to wave.conf1
I did the a2dissites *.conf as well as stopped/restarted apache2

I then did
 apachectl -S
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
VirtualHost configuration:
*:80                   127.0.1.1 (/etc/apache2/sites-enabled/wave.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

Main DocumentRoot: "/var/www/html"   <<<<<<<< what the heck!!!
and I get this as the default... where/why is this set?

did a "find" and only saw it in the /etc/apache/* files I had
renamed.. there are no *.conf for the testing... (for now..)

any thoughts/ideas!


thanks

On Sat, Nov 11, 2023 at 6:24 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:
>>
>> Thanks..
>>
>> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?
>>
>> Pretty sure this is simple.. but can't see what's missing...
>>
>> thanks
>>
>> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>> >
>> >
>> >
>> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>> >>
>> >> Hi Frank!!
>> >>
>> >> thanks for the reply.
>> >>
>> >> If you don't mind.. here's my setup
>> >> ubuntu -- apache2
>> >>
>> >>
>> >> /etc/apache2/mods-available/alias.conf
>> >> ------------------------------------------------------------------
>> >> Alias /icons/ "/usr/share/apache2/icons/"
>> >> #Alias /wave/ "/var/www/html/wave"
>> >> Alias /wave/ "/var/www/html/wave/wave/public"
>> >>
>> >> <Directory "/usr/share/apache2/icons">
>> >>     Options FollowSymlinks
>> >>     AllowOverride None
>> >>     Require all granted
>> >> </Directory>
>> >>
>> >> -----------------------------------------------------------
>> >> ls -al /var/www/html/wave/wave/public
>> >>  www-data:www-data  (775)
>> >>
>> >> ls -al /var/www/html/wave/wave/storage
>> >>  www-data:www-data  (775)
>> >>
>> >>
>> >> /etc/apache2/sites-available/wave
>> >>
>> >>
>> >>
>> >> ls -al /etc/apache2/sites-available
>> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>> >>
>> >> cat /etc/apache2/sites-available/wave.conf
>> >> <VirtualHost *:80>
>> >>     ServerAdmin admin@example.com
>> >>     ServerName  temp
>> >>     ServerAlias temp
>> >>      DocumentRoot   /var/www/html/wave/wave/public
>> >>
>> >>     <Directory    /var/www/html/wave/wave/public/>
>> >>             Options Indexes FollowSymLinks MultiViews
>> >>             AllowOverride All
>> >>             Order allow,deny
>> >>             allow from all
>> >>             Require all granted
>> >>     </Directory>
>> >>
>> >>     LogLevel debug
>> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
>> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>> >> </VirtualHost>
>> >>
>> >> ----------------------------------------------------------------------------------------------------
>> >>
>> >> and then simply run
>> >>     a2ensite wave.conf
>> >>     service apache2 reload
>> >>     systemctl restart apache2
>> >>
>> >> to restart apache...
>> >>
>> >> and the test site
>> >>  http://161.35.5.174/wave
>> >>
>> >> should appear??
>> >>
>> >> Is there anything else you see that I need to implement?
>> >>
>> >> thanks
>> >>
>> >>
>> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>> >> >
>> >> >
>> >> >
>> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>> >> >>
>> >> >> Hi.
>> >> >>
>> >> >> Trying to set up a test http://1.2.3.4/foo
>> >> >>
>> >> >> where I have a laravel/php setup
>> >> >>  /var/www/html/foo/foo/public <<<
>> >> >>
>> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> >> >> /etc/apache2/conf-availables/alias.conf
>> >> >> /etc/apache2/sites-available/foo
>> >> >>
>> >> >> and the base httpd.conf
>> >> >>
>> >> >> I think there needs to be "rewrite" in there somewhere as well.
>> >> >>
>> >> >> Anyone have a solid example of how this should be put together, the
>> >> >> steps required.
>> >> >>
>> >> >> I seem to be getting an index list.
>> >> >>
>> >> >>
>> >> >> At the same time, once this works, I'm going to also "test/try" to get
>> >> >> a javascript app running that can be viewed/displayed from the same
>> >> >> test server.
>> >> >>
>> >> >> The test server is a digitalocean ubuntu, easily accessible if you
>> >> >> want to look at the dir/tree/files.
>> >> >>
>> >> >> thanks
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >>
>> >> >
>> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>> >> >
>> >> > Finally, you'll need to configure httpd to parse php content, see:
>> >> >
>> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >
>> > This isn't really a ubuntu-centric mailing list, to be fair.
>> >
>> > I would recommend you run apachectl -S to verify that:
>> >
>> > 1) Your vhosts are properly defined
>> > 2) Then examine the configuration of each vhost
>> >
>> > I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> The Order/Allow/Deny directives should not be used any more, and you should unload the mod_access_compat module as well.
>
> As for seeing the directory listing, you are probably missing the DirectoryIndex directive.

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


Re: [users@httpd] Unicode Chars not working

Posted by Paul <st...@stormy.ca>.
On 2023-11-13 22:17, Chris me wrote:
> I rechecked the response headers, interesting thing is the server that 
> works is just sending content-type: text/thml
> 
> but the one that does not work is sending  content-type: text/html and 
> charset=UTF-8
> 
> even though it is sending the charset after I un-commented it in 
> charset.conf.
> 
> So why does the old server work properly even though it does not 
> explicitly set the charset, but the new server does not, even when it is 
> set?
> 
> Is it the linux system itself that might be serving the file to apache 
> weird?

[off-apache-topic] To eliminate all charset | meta | newer browser 
compliance | whatever questions and solve them later, why not manually 
just get rid of all non-utf-8 content?  It's trivial to find them using 
e.g.:
      grep -axv '.*' *.html
Mix and match to your directory content.  Note this assumes your 
'locale' is utf-8
Paul


> 
> One thing I did notice in the headers, is the old server has
> 
> transfer-encoding: chunked
> 
> but the new server does not have that, it has
> 
> Vary: accept-encoding
> 
> *From:* phunction <ph...@hotmail.com>
> *Sent:* Saturday, November 11, 2023 4:14 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Unicode Chars not working
> 
> Seeing how it's an exact copy from the other server and the other server 
> is fine I would think that's more of a Apache configuration isn't it?
> 
> The content itself does not specify a character set.
> 
> Sent from my Galaxy
> 
> -------- Original message --------
> 
> From: Frank Gingras <thumbs@apache.org <ma...@apache.org>>
> 
> Date: 2023-11-11 4:02 p.m. (GMT-08:00)
> 
> To: users@httpd.apache.org <ma...@httpd.apache.org>
> 
> Subject: Re: [users@httpd] Unicode Chars not working
> 
> On Sat, Nov 11, 2023 at 6:49 PM Chris me <phunction@hotmail.com 
> <ma...@hotmail.com>> wrote:
> 
>     Hi,
> 
>     I am moving my site from one server to another, both are apache 2.
>     The files where tarred and zipped on one linux server and copied to
>     another linux server.
> 
>     On the new server, any pages with a Unicode character is getting
>     served with the black diamond and question mark.
> 
>     I enabled AddDefaultCharset UTF-8 on the new server it does not make
>     a difference.
> 
>     What else do I need to change?
> 
> Are you sure your content is not producing html header with the wrong 
> charset? I would inspect it.
> 


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


RE: [users@httpd] Unicode Chars not working

Posted by Chris me <ph...@hotmail.com>.
I rechecked the response headers, interesting thing is the server that works is just sending content-type: text/thml

but the one that does not work is sending  content-type: text/html and charset=UTF-8
even though it is sending the charset after I un-commented it in charset.conf.

So why does the old server work properly even though it does not explicitly set the charset, but the new server does not, even when it is set?

Is it the linux system itself that might be serving the file to apache weird?

One thing I did notice in the headers, is the old server has
transfer-encoding: chunked
but the new server does not have that, it has
Vary: accept-encoding



From: phunction <ph...@hotmail.com>
Sent: Saturday, November 11, 2023 4:14 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unicode Chars not working

Seeing how it's an exact copy from the other server and the other server is fine I would think that's more of a Apache configuration isn't it?

The content itself does not specify a character set.



Sent from my Galaxy


-------- Original message --------
From: Frank Gingras <th...@apache.org>>
Date: 2023-11-11 4:02 p.m. (GMT-08:00)
To: users@httpd.apache.org<ma...@httpd.apache.org>
Subject: Re: [users@httpd] Unicode Chars not working



On Sat, Nov 11, 2023 at 6:49 PM Chris me <ph...@hotmail.com>> wrote:
Hi,
I am moving my site from one server to another, both are apache 2. The files where tarred and zipped on one linux server and copied to another linux server.

On the new server, any pages with a Unicode character is getting served with the black diamond and question mark.

I enabled AddDefaultCharset UTF-8 on the new server it does not make a difference.

What else do I need to change?

Are you sure your content is not producing html header with the wrong charset? I would inspect it.

Re: [users@httpd] Unicode Chars not working

Posted by Paul <st...@stormy.ca>.
Please see below, I do not top post.

On 2023-11-12 17:09, Chris me wrote:
> Yes, the headers are the same on both, there is no header directive to 
> set character set, as I have stated.
> 
> IE, there is nothing like <meta http-equiv="Content-Type" 
> content="text/html; charset=iso-8859-1" /> in the header.
> 
> There has to be something different in the 2 apache servers, the one 
> that works is an older 2.4.4 and the new one is 2.4.57 that is not 
> working right.
> 
> Still can’t figure out what is causing the difference.
> 
> *From:* Frank Gingras <th...@apache.org>
> *Sent:* Saturday, November 11, 2023 5:44 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Unicode Chars not working
> 
> On Sat, Nov 11, 2023 at 8:31 PM phunction <phunction@hotmail.com 
> <ma...@hotmail.com>> wrote:
> 
>     Seeing how it's an exact copy from the other server and the other
>     server is fine I would think that's more of a Apache configuration
>     isn't it?
> 
>     The content itself does not specify a character set.
> 
>     Sent from my Galaxy
> 
>     -------- Original message --------
> 
>     From: Frank Gingras <thumbs@apache.org <ma...@apache.org>>
> 
>     Date: 2023-11-11 4:02 p.m. (GMT-08:00)
> 
>     To: users@httpd.apache.org <ma...@httpd.apache.org>
> 
>     Subject: Re: [users@httpd] Unicode Chars not working
> 
>     On Sat, Nov 11, 2023 at 6:49 PM Chris me <phunction@hotmail.com
>     <ma...@hotmail.com>> wrote:
> 
>         Hi,
> 
>         I am moving my site from one server to another, both are apache
>         2. The files where tarred and zipped on one linux server and
>         copied to another linux server.
> 
>         On the new server, any pages with a Unicode character is getting
>         served with the black diamond and question mark.
> 
>         I enabled AddDefaultCharset UTF-8 on the new server it does not
>         make a difference.
> 
>         What else do I need to change?
> 
>     Are you sure your content is not producing html header with the
>     wrong charset? I would inspect it.
> 
> Try to inspect the response headers with your browser (F12) next.
> 

Latest W3 strongly suggests (even will give an error if missing) having 
a <meta http-equiv="Content-Type" content="text/html; charset=utf-8">. 
Have you tried this on your original website?  This should confirm that 
you have no charset errors.

You could also try # rsync -avz from the original to a clean directory 
on the new server, rather than tar zip.  If the original was utf-8 and 
not some variant, it should copy faithfully.

I can confirm that utf-8 from 2.4.4 to 2.4.52 (note, not 57) works 
perfectly.

Paul



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


RE: [users@httpd] Unicode Chars not working

Posted by Chris me <ph...@hotmail.com>.
Yes, the headers are the same on both, there is no header directive to set character set, as I have stated.
IE, there is nothing like <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> in the header.

There has to be something different in the 2 apache servers, the one that works is an older 2.4.4 and the new one is 2.4.57 that is not working right.

Still can’t figure out what is causing the difference.

From: Frank Gingras <th...@apache.org>
Sent: Saturday, November 11, 2023 5:44 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unicode Chars not working



On Sat, Nov 11, 2023 at 8:31 PM phunction <ph...@hotmail.com>> wrote:
Seeing how it's an exact copy from the other server and the other server is fine I would think that's more of a Apache configuration isn't it?

The content itself does not specify a character set.



Sent from my Galaxy


-------- Original message --------
From: Frank Gingras <th...@apache.org>>
Date: 2023-11-11 4:02 p.m. (GMT-08:00)
To: users@httpd.apache.org<ma...@httpd.apache.org>
Subject: Re: [users@httpd] Unicode Chars not working



On Sat, Nov 11, 2023 at 6:49 PM Chris me <ph...@hotmail.com>> wrote:
Hi,
I am moving my site from one server to another, both are apache 2. The files where tarred and zipped on one linux server and copied to another linux server.

On the new server, any pages with a Unicode character is getting served with the black diamond and question mark.

I enabled AddDefaultCharset UTF-8 on the new server it does not make a difference.

What else do I need to change?

Are you sure your content is not producing html header with the wrong charset? I would inspect it.

Try to inspect the response headers with your browser (F12) next.

Re: [users@httpd] Unicode Chars not working

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 8:31 PM phunction <ph...@hotmail.com> wrote:

> Seeing how it's an exact copy from the other server and the other server
> is fine I would think that's more of a Apache configuration isn't it?
>
> The content itself does not specify a character set.
>
>
>
> Sent from my Galaxy
>
>
> -------- Original message --------
> From: Frank Gingras <th...@apache.org>
> Date: 2023-11-11 4:02 p.m. (GMT-08:00)
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Unicode Chars not working
>
>
>
> On Sat, Nov 11, 2023 at 6:49 PM Chris me <ph...@hotmail.com> wrote:
>
>> Hi,
>>
>> I am moving my site from one server to another, both are apache 2. The
>> files where tarred and zipped on one linux server and copied to another
>> linux server.
>>
>>
>>
>> On the new server, any pages with a Unicode character is getting served
>> with the black diamond and question mark.
>>
>>
>>
>> I enabled AddDefaultCharset UTF-8 on the new server it does not make a
>> difference.
>>
>>
>>
>> What else do I need to change?
>>
>
> Are you sure your content is not producing html header with the wrong
> charset? I would inspect it.
>

Try to inspect the response headers with your browser (F12) next.

Re: [users@httpd] Unicode Chars not working

Posted by phunction <ph...@hotmail.com>.
Seeing how it's an exact copy from the other server and the other server is fine I would think that's more of a Apache configuration isn't it?The content itself does not specify a character set.Sent from my Galaxy
-------- Original message --------From: Frank Gingras <th...@apache.org> Date: 2023-11-11  4:02 p.m.  (GMT-08:00) To: users@httpd.apache.org Subject: Re: [users@httpd] Unicode Chars not working On Sat, Nov 11, 2023 at 6:49 PM Chris me <ph...@hotmail.com> wrote:










Hi,
I am moving my site from one server to another, both are apache 2. The files where tarred and zipped on one linux server and copied to another linux server.
 
On the new server, any pages with a Unicode character is getting served with the black diamond and question mark.
 
I enabled AddDefaultCharset UTF-8 on the new server it does not make a difference.
 
What else do I need to change?Are you sure your content is not producing html header with the wrong charset? I would inspect it. 

Re: [users@httpd] Unicode Chars not working

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 6:49 PM Chris me <ph...@hotmail.com> wrote:

> Hi,
>
> I am moving my site from one server to another, both are apache 2. The
> files where tarred and zipped on one linux server and copied to another
> linux server.
>
>
>
> On the new server, any pages with a Unicode character is getting served
> with the black diamond and question mark.
>
>
>
> I enabled AddDefaultCharset UTF-8 on the new server it does not make a
> difference.
>
>
>
> What else do I need to change?
>

Are you sure your content is not producing html header with the wrong
charset? I would inspect it.

[users@httpd] Unicode Chars not working

Posted by Chris me <ph...@hotmail.com>.
Hi,
I am moving my site from one server to another, both are apache 2. The files where tarred and zipped on one linux server and copied to another linux server.

On the new server, any pages with a Unicode character is getting served with the black diamond and question mark.

I enabled AddDefaultCharset UTF-8 on the new server it does not make a difference.

What else do I need to change?

Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 6:20 PM bruce <ba...@gmail.com> wrote:

> Thanks..
>
> Tried again. Same results. As far as 2.2 directives vs 2.4.. could you
> clarify?
>
> Pretty sure this is simple.. but can't see what's missing...
>
> thanks
>
> On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
> >>
> >> Hi Frank!!
> >>
> >> thanks for the reply.
> >>
> >> If you don't mind.. here's my setup
> >> ubuntu -- apache2
> >>
> >>
> >> /etc/apache2/mods-available/alias.conf
> >> ------------------------------------------------------------------
> >> Alias /icons/ "/usr/share/apache2/icons/"
> >> #Alias /wave/ "/var/www/html/wave"
> >> Alias /wave/ "/var/www/html/wave/wave/public"
> >>
> >> <Directory "/usr/share/apache2/icons">
> >>     Options FollowSymlinks
> >>     AllowOverride None
> >>     Require all granted
> >> </Directory>
> >>
> >> -----------------------------------------------------------
> >> ls -al /var/www/html/wave/wave/public
> >>  www-data:www-data  (775)
> >>
> >> ls -al /var/www/html/wave/wave/storage
> >>  www-data:www-data  (775)
> >>
> >>
> >> /etc/apache2/sites-available/wave
> >>
> >>
> >>
> >> ls -al /etc/apache2/sites-available
> >> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
> >>
> >> cat /etc/apache2/sites-available/wave.conf
> >> <VirtualHost *:80>
> >>     ServerAdmin admin@example.com
> >>     ServerName  temp
> >>     ServerAlias temp
> >>      DocumentRoot   /var/www/html/wave/wave/public
> >>
> >>     <Directory    /var/www/html/wave/wave/public/>
> >>             Options Indexes FollowSymLinks MultiViews
> >>             AllowOverride All
> >>             Order allow,deny
> >>             allow from all
> >>             Require all granted
> >>     </Directory>
> >>
> >>     LogLevel debug
> >>     ErrorLog ${APACHE_LOG_DIR}/error.log
> >>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> >> </VirtualHost>
> >>
> >>
> ----------------------------------------------------------------------------------------------------
> >>
> >> and then simply run
> >>     a2ensite wave.conf
> >>     service apache2 reload
> >>     systemctl restart apache2
> >>
> >> to restart apache...
> >>
> >> and the test site
> >>  http://161.35.5.174/wave
> >>
> >> should appear??
> >>
> >> Is there anything else you see that I need to implement?
> >>
> >> thanks
> >>
> >>
> >> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org>
> wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> >> >>
> >> >> Hi.
> >> >>
> >> >> Trying to set up a test http://1.2.3.4/foo
> >> >>
> >> >> where I have a laravel/php setup
> >> >>  /var/www/html/foo/foo/public <<<
> >> >>
> >> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in
> the
> >> >> /etc/apache2/conf-availables/alias.conf
> >> >> /etc/apache2/sites-available/foo
> >> >>
> >> >> and the base httpd.conf
> >> >>
> >> >> I think there needs to be "rewrite" in there somewhere as well.
> >> >>
> >> >> Anyone have a solid example of how this should be put together, the
> >> >> steps required.
> >> >>
> >> >> I seem to be getting an index list.
> >> >>
> >> >>
> >> >> At the same time, once this works, I'm going to also "test/try" to
> get
> >> >> a javascript app running that can be viewed/displayed from the same
> >> >> test server.
> >> >>
> >> >> The test server is a digitalocean ubuntu, easily accessible if you
> >> >> want to look at the dir/tree/files.
> >> >>
> >> >> thanks
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >
> >> > All you need is Alias /foo /var/www/html/foo/foo/public in your
> vhost. Why do you think you need to use mod_rewrite, as well?
> >> >
> >> > Finally, you'll need to configure httpd to parse php content, see:
> >> >
> >> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > This isn't really a ubuntu-centric mailing list, to be fair.
> >
> > I would recommend you run apachectl -S to verify that:
> >
> > 1) Your vhosts are properly defined
> > 2) Then examine the configuration of each vhost
> >
> > I would also certainly not use 2.2 authz directives, so I would stop
> reading whatever site or howto recommended that.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
The Order/Allow/Deny directives should not be used any more, and you should
unload the mod_access_compat module as well.

As for seeing the directory listing, you are probably missing the
DirectoryIndex directive.

Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
Thanks..

Tried again. Same results. As far as 2.2 directives vs 2.4.. could you clarify?

Pretty sure this is simple.. but can't see what's missing...

thanks

On Sat, Nov 11, 2023 at 6:05 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:
>>
>> Hi Frank!!
>>
>> thanks for the reply.
>>
>> If you don't mind.. here's my setup
>> ubuntu -- apache2
>>
>>
>> /etc/apache2/mods-available/alias.conf
>> ------------------------------------------------------------------
>> Alias /icons/ "/usr/share/apache2/icons/"
>> #Alias /wave/ "/var/www/html/wave"
>> Alias /wave/ "/var/www/html/wave/wave/public"
>>
>> <Directory "/usr/share/apache2/icons">
>>     Options FollowSymlinks
>>     AllowOverride None
>>     Require all granted
>> </Directory>
>>
>> -----------------------------------------------------------
>> ls -al /var/www/html/wave/wave/public
>>  www-data:www-data  (775)
>>
>> ls -al /var/www/html/wave/wave/storage
>>  www-data:www-data  (775)
>>
>>
>> /etc/apache2/sites-available/wave
>>
>>
>>
>> ls -al /etc/apache2/sites-available
>> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>>
>> cat /etc/apache2/sites-available/wave.conf
>> <VirtualHost *:80>
>>     ServerAdmin admin@example.com
>>     ServerName  temp
>>     ServerAlias temp
>>      DocumentRoot   /var/www/html/wave/wave/public
>>
>>     <Directory    /var/www/html/wave/wave/public/>
>>             Options Indexes FollowSymLinks MultiViews
>>             AllowOverride All
>>             Order allow,deny
>>             allow from all
>>             Require all granted
>>     </Directory>
>>
>>     LogLevel debug
>>     ErrorLog ${APACHE_LOG_DIR}/error.log
>>     CustomLog ${APACHE_LOG_DIR}/access.log combined
>> </VirtualHost>
>>
>> ----------------------------------------------------------------------------------------------------
>>
>> and then simply run
>>     a2ensite wave.conf
>>     service apache2 reload
>>     systemctl restart apache2
>>
>> to restart apache...
>>
>> and the test site
>>  http://161.35.5.174/wave
>>
>> should appear??
>>
>> Is there anything else you see that I need to implement?
>>
>> thanks
>>
>>
>> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>> >
>> >
>> >
>> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>> >>
>> >> Hi.
>> >>
>> >> Trying to set up a test http://1.2.3.4/foo
>> >>
>> >> where I have a laravel/php setup
>> >>  /var/www/html/foo/foo/public <<<
>> >>
>> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> >> /etc/apache2/conf-availables/alias.conf
>> >> /etc/apache2/sites-available/foo
>> >>
>> >> and the base httpd.conf
>> >>
>> >> I think there needs to be "rewrite" in there somewhere as well.
>> >>
>> >> Anyone have a solid example of how this should be put together, the
>> >> steps required.
>> >>
>> >> I seem to be getting an index list.
>> >>
>> >>
>> >> At the same time, once this works, I'm going to also "test/try" to get
>> >> a javascript app running that can be viewed/displayed from the same
>> >> test server.
>> >>
>> >> The test server is a digitalocean ubuntu, easily accessible if you
>> >> want to look at the dir/tree/files.
>> >>
>> >> thanks
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >
>> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>> >
>> > Finally, you'll need to configure httpd to parse php content, see:
>> >
>> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> This isn't really a ubuntu-centric mailing list, to be fair.
>
> I would recommend you run apachectl -S to verify that:
>
> 1) Your vhosts are properly defined
> 2) Then examine the configuration of each vhost
>
> I would also certainly not use 2.2 authz directives, so I would stop reading whatever site or howto recommended that.

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


Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 5:46 PM bruce <ba...@gmail.com> wrote:

> Hi Frank!!
>
> thanks for the reply.
>
> If you don't mind.. here's my setup
> ubuntu -- apache2
>
>
> /etc/apache2/mods-available/alias.conf
> ------------------------------------------------------------------
> Alias /icons/ "/usr/share/apache2/icons/"
> #Alias /wave/ "/var/www/html/wave"
> Alias /wave/ "/var/www/html/wave/wave/public"
>
> <Directory "/usr/share/apache2/icons">
>     Options FollowSymlinks
>     AllowOverride None
>     Require all granted
> </Directory>
>
> -----------------------------------------------------------
> ls -al /var/www/html/wave/wave/public
>  www-data:www-data  (775)
>
> ls -al /var/www/html/wave/wave/storage
>  www-data:www-data  (775)
>
>
> /etc/apache2/sites-available/wave
>
>
>
> ls -al /etc/apache2/sites-available
> -rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf
>
> cat /etc/apache2/sites-available/wave.conf
> <VirtualHost *:80>
>     ServerAdmin admin@example.com
>     ServerName  temp
>     ServerAlias temp
>      DocumentRoot   /var/www/html/wave/wave/public
>
>     <Directory    /var/www/html/wave/wave/public/>
>             Options Indexes FollowSymLinks MultiViews
>             AllowOverride All
>             Order allow,deny
>             allow from all
>             Require all granted
>     </Directory>
>
>     LogLevel debug
>     ErrorLog ${APACHE_LOG_DIR}/error.log
>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> </VirtualHost>
>
>
> ----------------------------------------------------------------------------------------------------
>
> and then simply run
>     a2ensite wave.conf
>     service apache2 reload
>     systemctl restart apache2
>
> to restart apache...
>
> and the test site
>  http://161.35.5.174/wave
>
> should appear??
>
> Is there anything else you see that I need to implement?
>
> thanks
>
>
> On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
> >
> >
> >
> > On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
> >>
> >> Hi.
> >>
> >> Trying to set up a test http://1.2.3.4/foo
> >>
> >> where I have a laravel/php setup
> >>  /var/www/html/foo/foo/public <<<
> >>
> >> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
> >> /etc/apache2/conf-availables/alias.conf
> >> /etc/apache2/sites-available/foo
> >>
> >> and the base httpd.conf
> >>
> >> I think there needs to be "rewrite" in there somewhere as well.
> >>
> >> Anyone have a solid example of how this should be put together, the
> >> steps required.
> >>
> >> I seem to be getting an index list.
> >>
> >>
> >> At the same time, once this works, I'm going to also "test/try" to get
> >> a javascript app running that can be viewed/displayed from the same
> >> test server.
> >>
> >> The test server is a digitalocean ubuntu, easily accessible if you
> >> want to look at the dir/tree/files.
> >>
> >> thanks
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >
> > All you need is Alias /foo /var/www/html/foo/foo/public in your vhost.
> Why do you think you need to use mod_rewrite, as well?
> >
> > Finally, you'll need to configure httpd to parse php content, see:
> >
> > https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
This isn't really a ubuntu-centric mailing list, to be fair.

I would recommend you run apachectl -S to verify that:

1) Your vhosts are properly defined
2) Then examine the configuration of each vhost

I would also certainly not use 2.2 authz directives, so I would stop
reading whatever site or howto recommended that.

Re: [users@httpd] ubuntu apache2

Posted by bruce <ba...@gmail.com>.
Hi Frank!!

thanks for the reply.

If you don't mind.. here's my setup
ubuntu -- apache2


/etc/apache2/mods-available/alias.conf
------------------------------------------------------------------
Alias /icons/ "/usr/share/apache2/icons/"
#Alias /wave/ "/var/www/html/wave"
Alias /wave/ "/var/www/html/wave/wave/public"

<Directory "/usr/share/apache2/icons">
    Options FollowSymlinks
    AllowOverride None
    Require all granted
</Directory>

-----------------------------------------------------------
ls -al /var/www/html/wave/wave/public
 www-data:www-data  (775)

ls -al /var/www/html/wave/wave/storage
 www-data:www-data  (775)


/etc/apache2/sites-available/wave



ls -al /etc/apache2/sites-available
-rw-r--r-- 1 root root  516 Nov  2 19:11 wave.conf

cat /etc/apache2/sites-available/wave.conf
<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName  temp
    ServerAlias temp
     DocumentRoot   /var/www/html/wave/wave/public

    <Directory    /var/www/html/wave/wave/public/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            Require all granted
    </Directory>

    LogLevel debug
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

----------------------------------------------------------------------------------------------------

and then simply run
    a2ensite wave.conf
    service apache2 reload
    systemctl restart apache2

to restart apache...

and the test site
 http://161.35.5.174/wave

should appear??

Is there anything else you see that I need to implement?

thanks


On Sat, Nov 11, 2023 at 5:24 PM Frank Gingras <th...@apache.org> wrote:
>
>
>
> On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:
>>
>> Hi.
>>
>> Trying to set up a test http://1.2.3.4/foo
>>
>> where I have a laravel/php setup
>>  /var/www/html/foo/foo/public <<<
>>
>> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
>> /etc/apache2/conf-availables/alias.conf
>> /etc/apache2/sites-available/foo
>>
>> and the base httpd.conf
>>
>> I think there needs to be "rewrite" in there somewhere as well.
>>
>> Anyone have a solid example of how this should be put together, the
>> steps required.
>>
>> I seem to be getting an index list.
>>
>>
>> At the same time, once this works, I'm going to also "test/try" to get
>> a javascript app running that can be viewed/displayed from the same
>> test server.
>>
>> The test server is a digitalocean ubuntu, easily accessible if you
>> want to look at the dir/tree/files.
>>
>> thanks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why do you think you need to use mod_rewrite, as well?
>
> Finally, you'll need to configure httpd to parse php content, see:
>
> https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
>
>

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


Re: [users@httpd] ubuntu apache2

Posted by Frank Gingras <th...@apache.org>.
On Sat, Nov 11, 2023 at 5:16 PM bruce <ba...@gmail.com> wrote:

> Hi.
>
> Trying to set up a test http://1.2.3.4/foo
>
> where I have a laravel/php setup
>  /var/www/html/foo/foo/public <<<
>
> As far as I can tell, there should be an "alias.conf" -- foo.conf in the
> /etc/apache2/conf-availables/alias.conf
> /etc/apache2/sites-available/foo
>
> and the base httpd.conf
>
> I think there needs to be "rewrite" in there somewhere as well.
>
> Anyone have a solid example of how this should be put together, the
> steps required.
>
> I seem to be getting an index list.
>
>
> At the same time, once this works, I'm going to also "test/try" to get
> a javascript app running that can be viewed/displayed from the same
> test server.
>
> The test server is a digitalocean ubuntu, easily accessible if you
> want to look at the dir/tree/files.
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
All you need is Alias /foo /var/www/html/foo/foo/public in your vhost. Why
do you think you need to use mod_rewrite, as well?

Finally, you'll need to configure httpd to parse php content, see:

https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM