RE: [EMAIL PROTECTED] Can't access site outside local network?
even if the isp blocks ports you can still modify the ports that apache/httpd uses. you'll probably need to port forward these at your router (you do have a router, right!!) you'll also need to remember to use your new port when directly accessing your website. you could also check out the dynamic/redirect services out on the net.. have fun!! -Original Message- From: Eric Covener [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 7:03 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Can't access site outside local network? On Tue, Nov 11, 2008 at 9:40 AM, Josuel Padua <[EMAIL PROTECTED]> wrote: > Hi, > > I just installed/configured apache on my pc (XP). I needed a server for my > small site that uses mysql. I can view the site with no problems inside the > local network, the problem is I can't get anything when I try to access it > from outside the network. I can ping the IP but can't view any of the pages > I made. Can anyone help me with my problem? For a home network, you need to hope your ISP doesn't block any ports your using, then forward those same ports via your router to your host running Apache -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[users@httpd] trying to debug a mod_perl app
hi... i hope this is the right place to turn to!! i have mod_perl installed on an apache1.3.33/mod_perl1.29/FC3 setup. i'm trying to track down how i can print something from a '.pm' file that's used with an apache app that i'm testing... my perl skill is enough to get me in trouble!! here's the situation: i have an application (livejournal) that uses a file, BML.pm. I'm trying to print out information from within the file to the error_log file. I can accomplish this via a 'print STDERR foo' in other '.bml' files that are used by the application. the '.bml' files appear to be pretty much perl files. the BML.pm file appears to be used by apache at startup, as when i mv the file, apache doesn't start, so i know the file is used. a portion of the BML.pm file is listed below. i've searched (am searching) google to try to get a feel for what i need to do to be able to print something from the file to the STDERR/error_log. right now, i'm stumped/confused!!! if the file is required by apache, does that imply that apache runs/interprets the file during startup? if this is the case, doesn't this also imply that i should be able to do an initial print/debug statement at the beginning of the file to get something to show up in the error_log file. or, is it possible that the file is required by apache to start, but isn't used??? my current delimma is that i can't figure out a way to print anything from the BML.pm file to the error_log file.. arrggghhh!!! thanks -bruce [EMAIL PROTECTED] ps. i tried to talk with a few of the guys on the livejournal forums.. not much help!! portion of the bml.pm listing... #!/usr/bin/perl # print STDERR "bdouglas bml top\n"; use strict; package BML::Request; use fields qw( env blockref lang r blockflags BlockStack file scratch IncludeOpen content_type clean_package package filechanged scheme scheme_file IncludeStack etag location most_recent_mod stop_flag want_last_modified cookies ); package Apache::BML; print STDERR "bdouglas bml n\n"; use Apache::Constants qw(:common REDIRECT HTTP_NOT_MODIFIED); use Apache::File (); use Apache::URI; use Digest::MD5; use File::Spec; BEGIN { print STDERR "bdouglas bml 55\n"; $Apache::BML::HAVE_ZLIB = eval "use Compress::Zlib (); 1;"; } # set per request: use vars qw($cur_req); use vars qw(%CodeBlockOpts); # scalar hashrefs of versions below, minus the domain part: my ($SchemeData, $SchemeFlags); # keyed by domain: my $ML_SCOPE; # generally the $r->uri, auto set on each request (unless overridden) my (%SchemeData, %SchemeFlags); # domain -> scheme -> key -> scalars (data has {s} blocks expanded) # safely global: use vars qw(%FileModTime %LookItems); # LookItems: file -> template -> [ data, flags ] use vars qw(%LookParent); # file -> parent file use vars qw(%LookChild); # file -> child -> 1 my (%CodeBlockMade); use vars qw($conf_pl $conf_pl_look); # hashref, made empty before loading a .pl conf file my %DenyConfig; # filename -> 1 my %FileConfig; # filename -> hashref my %FileLastStat;# filename -> time we last looked at its modtime use vars qw($base_recent_mod); # the request we're handling (Apache->request). using this way # instead of just using Apache->request because when using # Apache::FakeRequest and non-mod_perl env, I can't seem to get/set # the value of Apache->request use vars qw($r); # regexps to match open and close tokens. (but old syntax (=..=) is deprecated) my ($TokenOpen, $TokenClose) = ('<\?', '\?>'); tie %BML::ML, 'BML::ML'; tie %BML::COOKIE, 'BML::Cookie'; print STDERR "bdouglas 11 -bml\n"; sub handler { $r->log_error( "bdouglas 1123 -bml\n"); my $r = shift; my $file; $Apache::BML::r = $r; ' ' ' } . . . --- <>- The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] apache displaying the directory contents...
hi... i'm trying to figure out how to stop apache from displaying the directory contents if the index.html/php/etc file is not found... i've done the google search, and i'm pretty sure i'm missing something seriously basic... any ideas/thoughts/pointers... thanks bruce [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] apache displaying the directory contents...
i'm still trying to figure out how to 'turn off indexing' or hot to disable indexing of a directory in apache. i have a index.php file. if i rename the file, apache displays the directory of the document... i've reviewed what information i've been able to find via google. i have the following in my httd.conf file: LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so . . . # # Disable autoindex for the root directory, and present a # default Welcome page if no other index page is present. # Options -Indexes #ErrorDocument 403 /error/noindex.html ErrorDocument 403 /foo/err.html . . . #condor web test Alias /condor /var/www/html/condor #don't display directory listing #Options All Options -Indexes #Order allow,deny #Allow from all i've tried various combinations of commenting/uncommenting to try to resolve this issue with no luck. any thoughts/ideas/comments from people who actually know apache would be appreciated!!! can't seem to see what should be a simple issue. -bruce -Original Message- From: Jirka Vejrazka [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 7:00 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] apache displaying the directory contents... > > i'm trying to figure out how to stop apache from displaying the > > directory > > contents if the index.html/php/etc file is not found... I usually don't compile module autoindex during apache installation. If you don't compile apache yourself, just comment it out from config file (hopefully, it's dynamic). Just comment out the line which says "LoadModule autoindex", check the configfile for any directives that are related to the module and comment out these too. Jirka - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] apache displaying the directory contents...
joshua... it appears that what i'm seeing has something to do with the use of the VirtualHost/Directory directives/blocks. is there a limit to the number of Directory blocks that Apache can have within a VirtualHost? if i copy one of the Directory/Alias blocks to before the VirtualHost block, Apache appears to work correctly. thanks bruce [EMAIL PROTECTED] -Original Message- From: Joshua Slive [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 10:45 AM To: users@httpd.apache.org; [EMAIL PROTECTED] Subject: Re: [EMAIL PROTECTED] apache displaying the directory contents... On 7/25/05, bruce <[EMAIL PROTECTED]> wrote: > i'm still trying to figure out how to 'turn off indexing' or hot to disable > indexing of a directory in apache. i have a index.php file. if i rename the > file, apache displays the directory of the document... > > i've reviewed what information i've been able to find via google. i have the > following in my httd.conf file: > > LoadModule status_module modules/mod_status.so > LoadModule autoindex_module modules/mod_autoindex.so > LoadModule asis_module modules/mod_asis.so > . > . > . > # > # Disable autoindex for the root directory, and present a > # default Welcome page if no other index page is present. > # > > Options -Indexes > #ErrorDocument 403 /error/noindex.html > ErrorDocument 403 /foo/err.html > > . > . > . > #condor web test > Alias /condor /var/www/html/condor > > #don't display directory listing > #Options All > Options -Indexes > #Order allow,deny > #Allow from all > > > i've tried various combinations of commenting/uncommenting to try to resolve > this issue with no luck. > > any thoughts/ideas/comments from people who actually know apache would be > appreciated!!! The configuration listed above is basically correct, which means you are missing something more basic. I'd start by going through all of httpd.conf (and any Include'd config files) and check every single Option line to make sure that none of the contain "Indexes". It is not necessary to have "-Indexes". The absence of the option should turn it off. If that doesn't do it, then you need to check to make sure you are actually editting the same config file that apache is using. Do you get an error if you put an obvious syntax error in the file? Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] apache question??
hi... i just discovered that i can fire up a browser from my FC3 environment, and that i can do "file:///home/foo" and i'm presented with a list of the files in the directory, and that i can then examine the files obviously i don't want this behavior is there some attribute/directive that i can set within the apache conf file that will prevent this from occuring. i've been searching google/apache but can't seem to find what i'm missing.. thanks -bruce [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] apache question??
you know... this was truly one of the homer simpson moments you know the one..'DoH' i realized right after i hit the send key that this wasn't apache.. but rather filesystem... thanks for the replies... -Original Message- From: Craig Dunigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 10:19 AM To: users@httpd.apache.org; [EMAIL PROTECTED] Subject: Re: [EMAIL PROTECTED] apache question?? On Wed, 10 Aug 2005, bruce wrote: > hi... > > i just discovered that i can fire up a browser from my FC3 environment, and > that i can do "file:///home/foo" and i'm presented with a list of the files > in the directory, and that i can then examine the files > > obviously i don't want this behavior is there some attribute/directive > that i can set within the apache conf file that will prevent this from > occuring. > > i've been searching google/apache but can't seem to find what i'm missing.. > > thanks > > -bruce > [EMAIL PROTECTED] > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Bruce, I know that seems scary, but it's quite harmless. The only folks who can do that are people who are already logged into your computer. Moreover, it's not Apache that is serving those files. It's the OS itself. The browser lives on the filesystem, so the browser can read the filesystem when it's run by someone logged into that computer. No one can use "file://" from a remote machine and read your files. -- Craig Dunigan IS Technical Services Specialist (I don't know what it means, either) Middleware - Enterprise Info Systems - Department of Info Technology University of Wisconsin, Madison opinions expressed are my own, not the University's - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Internet Web Server/Client Guru needed!!
Hi... I'm working on a project, and need to know if there's anyone who's a guru with Web Server/Client interactions. Basically, I'm trying to get a much better/deeper understanding of the HTTP protocols defining the information that is sent/transfered between the web server/client browser apps. I'm also interested in understanding what the various information is that gets transfered between the apps, as well as understanding what information can be spoofed/altered on the client side, as it goes back to the server. I know about the querystring information (post/get/request/etc...). I'm more interested in the information that can be sent/viewed behind the scenes like header, ip addresses, mac addresses, machine IDs, etc... I'm also trying to understand just how much information can be seen by the web srever, from the browser/client app. At the same time, I'm curious as to just what the web server can get from the client app. All of this applies to me trying to get a better understanding of 'man in the middle attacks' as they apply to server/browser communications. Searching google isn't getting me what i really want!! So, if you have the skills/expertise in this area, and you're willing to talk to me for a few minutes, I'd appreciate it. As stated, the underlying reason for the questions is to get a better understanding of 'man in the middle attacks' as this applies to web server apps. Thanks bruce [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] redirecting when behind a firewall
Hi.. Got a bit of an issue here, that I can't seem to resolve. I have a test domain on a dynamic service (dyndns.org). the test domain is foo.gotdns.com, which i have pointing to my external cable/dsl address. Here's my issue, I would really like to be able to have the external user be able to see multiple websites which might be sitting on different physical machines/apache servers within my network. Behind the modem, I have a firewall which is set up to port-forward the traffic to a machine with my network. So, for my example, the machine is dog (192.168.1.52), and the "foo.gotdns.com" would point to the app on the machine, based on the vhost setup in the dog httpd.conf file. However, I would also like to have multiple external test sites/domains, each of which might point back to sites on different internal servers. The forwarding capability of the router only allows for all wan * (addresses) to be forwarded to a given internal machine. At the same time, the external/internal ports have to match. So i don't have the ability to do something like "forward foo.gotdns.com to machine1, and forward foo2.gotdns.com to machine2" which is exactly what i'm trying to accomplish!! I've been looking into using vhosts, and the redirect functionaility, but I can't seem to get it to work, using the external domain name. So. i'm trying to: -be able to access multiple test sites, on multiple servers from a browser external to my network -be able to access the same sites, from inside my network, using the local/internal namespace -be able to access the same sites, from inside my network, using the external namespace (testing purposes) I've looked high/low for how to accomplish this with no real luck. thanks ps. I've seen others who've been looking for similar solutions, so this would definitely help. ps. I'm able to do a redirect from one server to another, if I restrict to using internal addresses. Just can't get the external stuff to work.. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[users@httpd] testing..
test -- hello! - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Having Issues with Apache config file
Hi. New to Apache//Laravel. Trying to setup a simple test site for Laravel, running on Centos8 with Apache. I'm getting a 403 forbidden error. I've tried a few different mods to the condif file, still having the same error. The basic config file ,as well as the dir/layout follows: trying to setup/run a basic test laravel/apache app I'm getting some sort of forbidden err (403) I believe I'm running with the ipaddress http://161.35.180.212/ltest <<< ## laravel_project.conf NameVirtualHost *:80 Listen 80 # VirtualHost file to handle aliases #trying to simplify for test laravel app # VirtualHost file to handle aliases Alias /ltest /var/www/html/laravel_test #ServerAdmin admin@1.2.3.4 #ServerName laravel_test #ServerAlias ltest.com DocumentRoot "/var/www/html/laravel_test" Options Indexes FollowSymLinks MultiViews AllowOverride All #Order allow,deny #allow from all Require all granted # Define where the logs go and what they're called... ErrorLog "logs/testsite-error_log" CustomLog "logs/testsite-access_log" common the laravel test app is in the following dir /var/www/html/laravel_test there's also a /var/www/html/laravel_test/public /var/www/html/laravel_test/public/index.php Thoughts/Comments are welcome thanks -bruce - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Having Issues with Apache config file
Hey Group, Thanks for the replies! This was a basic/simple error... The updated conf file in the sites-available, wasn't symbolically linked to the sites-enabaled dir! as homer simpson said.. "DOH!!" paired programming is sometimes useful! On Sun, Jun 28, 2020 at 2:39 PM Jonathon Koyle wrote: > > Have you checked your error or access loss for any additional information? I > would also verify that the directory tree has the right SE Linux labels, that > looks like the default root, but it never hurts to check. 'ls -Z' will give > the labels, it should include something like httpd_t I believe. > > On Thu, Jun 25, 2020, 3:54 PM bruce wrote: >> >> Hi. >> >> New to Apache//Laravel. Trying to setup a simple test site for >> Laravel, running on Centos8 with Apache. >> >> I'm getting a 403 forbidden error. I've tried a few different mods to >> the condif file, still having the same error. The basic config file >> ,as well as the dir/layout follows: >> >> >> trying to setup/run a basic test laravel/apache app >> I'm getting some sort of forbidden err (403) I believe >> >> I'm running with the ipaddress >> >> http://161.35.180.212/ltest <<< >> >> >> >> ## laravel_project.conf >> NameVirtualHost *:80 >> Listen 80 >> >> >># VirtualHost file to handle aliases >> >> #trying to simplify for test laravel app >> >> # VirtualHost file to handle aliases >> >> Alias /ltest /var/www/html/laravel_test >> >> >> #ServerAdmin admin@1.2.3.4 >> #ServerName laravel_test >> #ServerAlias ltest.com >> >> DocumentRoot "/var/www/html/laravel_test" >> >> >> Options Indexes FollowSymLinks MultiViews >> AllowOverride All >> #Order allow,deny >> #allow from all >> Require all granted >> >> >> >> # Define where the logs go and what they're called... >> ErrorLog "logs/testsite-error_log" >> CustomLog "logs/testsite-access_log" common >> >> >> >> >> >> the laravel test app is in the following dir >> >> /var/www/html/laravel_test >> >> there's also a >> /var/www/html/laravel_test/public >> /var/www/html/laravel_test/public/index.php >> >> >> Thoughts/Comments are welcome >> >> thanks >> -bruce >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] looking or pointers to setting up reverse-proxy Apache for ruby/rails app
Hi. Looking to test a Ruby/Rails app from Github. The app runs on Heroku. I've been told I can somehow run the app on a Centos8 VM. My setup will be Centos8 running Apache 2.4 and all the usual subordinate apps from yum/dnf. I'm trying to understand what has to be set up in the Apache conf file for the Ruby/Rails test app. A test conf file with the virtualhost/directory blockdocumentRoot would let me see how the conf file is configured. At the same time, I assume there will be some kind of app on the Ruby/Rails side to interface with the Apache webserver. If you have insight into how his whole process should work, that would be helpful as well. thanks -bruce - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] perhaps off topic..
looking at node/react vs php... For those of you familiar with both, is there much of a difference/learning curve? I'm simply looking to test/perhaps mod a basic Landing page/marketing react app from github, and implement email/form-data gathering. thanks for comments - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] basic question ---
running apache2 old copy of centos trying to understand how to test a few things. I can have http://www.abc.com/a.php a.php can fire off a page to "b.php" I'm trying to figure out what to do in the httpd.conf file to "ignore/hide" the .php so the displayed url would be http://www.abc.com/b or http://www.abc.com/b?qq=1&w=2. any pointers would be helpful! oh, the test is a subdir off the main /var/www/html/testapp << thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] basic question ---
Hi Frank. Thanks for the reply. Not converting. But I've seen example open source demo/apps where the app/url http://www.foo.com/a http://www.foo.com/b are valid... and when I inspect the dir, I get a.php - b.php... So I'm assuming that there's something happening in the httpd.conf that's "hiding"/handling the ".php" extension. So, trying to understand, so I can do my own personal test. thanks On Mon, Oct 16, 2023 at 12:25 PM Frank Gingras wrote: > > You should use multviews, so that if you request /a, it will expand to a.php. > > Converting a.php to b.php makes no sense; why would you request another > script in that case? > > You should also look at the FallbackResource directive, and use pathinfo to > handle URI parameters, instead of the query string. > > On Mon, Oct 16, 2023 at 12:19 PM bruce wrote: >> >> running apache2 >> old copy of centos >> >> trying to understand how to test a few things. >> >> I can have >> http://www.abc.com/a.php >> >> a.php can fire off a page to "b.php" >> >> I'm trying to figure out what to do in the httpd.conf file to >> "ignore/hide" the .php >> >> so the displayed url would be >> http://www.abc.com/b >> or >> http://www.abc.com/b?qq=1&w=2. >> >> any pointers would be helpful! >> >> oh, the test is a subdir off the main /var/www/html/testapp << >> >> thanks >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] really basic -- maybe off-topic question
I'm looking into Saas apps, and I'm seeing "frameworks". Some of these Saas/App frameworks don't appear to use apache/nginx as a "webserver", but the app will have a "Url" in an "env" file. So, somehow/somewhere the app is implementing some sort of server logic/function. Is this normal? The frameworks I'm seeing are nodejs/Laravel/etc. Is there a way to have the framework be "served" from a normal "webserver" -- eg Apache? One of the framework apps I'm looking at is https://github.com/thedevdojo/wave Thanks for any help/comments/etc!! or, if there are pointers/sites you can point me to on these issues -- that'll work as well! -bruce - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] help pointers -- ubuntu apache for subdir apps
Hi. Have a couple of test apps that I want to setup and run as "subdir" apps. ie http://1.2.3.4/app1 http://1.2.3.4/app2 the dir tree example would be /var/www/html/app1 /var/www/html/app2 app1 would be a "laravel/php" app2 would be a nodejs/npm app... I have no clue as to how to implement the node app using apache. I managed to get a test of it running on a windows 10 box, and want to get it running on the ubuntu system. I'm assuming mods to the httpd.conf files need to be made. as well as possible .htaccess file mods/creation as well as possible mod_rewrite I'm more than willing to provide access to the ubuntu/digitalocean instance. it's a throw-away. it can easily be rebuilt. any help/pointers greatly appreciated. I've seen/tried a few different things from different articles, but I'm obviously not getting something! thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[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-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] ubuntu apache2
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" Options FollowSymlinks AllowOverride None Require all granted --- 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 ServerAdmin ad...@example.com ServerName temp ServerAlias temp DocumentRoot /var/www/html/wave/wave/public Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined 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 wrote: > > > > On Sat, Nov 11, 2023 at 5:16 PM bruce 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-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] ubuntu apache2
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 wrote: > > > > On Sat, Nov 11, 2023 at 5:46 PM bruce 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" >> >> >> Options FollowSymlinks >> AllowOverride None >> Require all granted >> >> >> --- >> 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 >> >> ServerAdmin ad...@example.com >> ServerName temp >> ServerAlias temp >> DocumentRoot /var/www/html/wave/wave/public >> >> >> Options Indexes FollowSymLinks MultiViews >> AllowOverride All >> Order allow,deny >> allow from all >> Require all granted >> >> >> LogLevel debug >> ErrorLog ${APACHE_LOG_DIR}/error.log >> CustomLog ${APACHE_LOG_DIR}/access.log combined >> >> >> >> >> 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 wrote: >> > >> > >> > >> > On Sat, Nov 11, 2023 at 5:16 PM bruce 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-unsubscr...@httpd.apache.org >> >> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] ubuntu apache2
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 wrote: > > > > On Sat, Nov 11, 2023 at 6:20 PM bruce 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 wrote: >> > >> > >> > >> > On Sat, Nov 11, 2023 at 5:46 PM bruce 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" >> >> >> >> >> >> Options FollowSymlinks >> >> AllowOverride None >> >> Require all granted >> >> >> >> >> >> --- >> >> 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 >> >> >> >> ServerAdmin ad...@example.com >> >> ServerName temp >> >> ServerAlias temp >> >> DocumentRoot /var/www/html/wave/wave/public >> >> >> >> >> >> Options Indexes FollowSymLinks MultiViews >> >> AllowOverride All >> >> Order allow,deny >> >> allow from all >> >> Require all granted >> >> >> >> >> >> LogLevel debug >> >> ErrorLog ${APACHE_LOG_DIR}/error.log >> >> CustomLog ${APACHE_LOG_DIR}/access.log combined >> >> >> >> >> >> >> >> >> >> 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 wrote: >> >> > >> >> > >>
Re: [users@httpd] ubuntu apache2
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 wrote: > > > > On Sat, Nov 11, 2023 at 8:41 PM bruce 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 wrote: >> > >> > >> > >> > On Sat, Nov 11, 2023 at 6:20 PM bruce 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 wrote: >> >> > >> >> > >> >> > >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce 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" >> >> >> >> >> >> >> >> >> Options FollowSymlinks >> >> >> AllowOverride None >> >> >> Require all granted >> >> >> >> >> >> >> >> >> --- >> >> >> 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 >> >> >> >> >> >> ServerAdmin ad...@example.com >> >> >> ServerName temp >> >> >> ServerAlias temp >> >> >> DocumentRoot /var/www/html/wave/wave/public >> >> >> >> >> >> >> >> >> Options Indexes FollowSymLinks MultiViews >> >> &g
Re: [users@httpd] ubuntu apache2
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 wrote: > > > > On Sat, Nov 11, 2023 at 9:25 PM bruce 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 wrote: >> > >> > >> > >> > On Sat, Nov 11, 2023 at 8:41 PM bruce 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 wrote: >> >> > >> >> > >> >> > >> >> > On Sat, Nov 11, 2023 at 6:20 PM bruce 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 >> >> >> wrote: >> >> >> > >> >> >> > >> >> >> > >> >> >> > On Sat, Nov 11, 2023 at 5:46 PM bruce wrote: >> >> >> >> >> >> >> >> Hi Frank!! >> >> >> >> >> >> >> >> thanks for the reply. >> >> >> >> >> >> >> >> If you don't mind.. here's my setup >> >> >> >> ubuntu -- apache2 >> >> >> >> >> >> >> >> >> >> >> >> /etc/apache2/mods-available/alias.conf >> >> >> >> ---
Re: [users@httpd] ubuntu apache2
hi.. /etc/apache2# cat /etc/apache2/sites-available/wave.conf ServerAdmin f...@yahoo.com ServerName 161.35.5.174 ServerAlias temp DocumentRoot /var/www/html/wave/wave/public DirectoryIndex index.php /public/index.php #Options Indexes FollowSymLinks MultiViews Options +FollowSymlinks AllowOverride All #Order allow,deny #allow from all Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined 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" Options FollowSymlinks AllowOverride None Require all granted 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 wrote: > > > > On Sat, Nov 11, 2023 at 10:37 PM bruce 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 wrote: >> > >> > >> > >> > On Sat, Nov 11, 2023 at 9:25 PM bruce 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 wrote: >> >> > >> >> > >> >> > >> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce 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? >> >> >> >> >> >
Re: [users@httpd] ubuntu apache2
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 wrote: > > hi.. > > /etc/apache2# cat /etc/apache2/sites-available/wave.conf > > ServerAdmin f...@yahoo.com > ServerName 161.35.5.174 > ServerAlias temp > DocumentRoot /var/www/html/wave/wave/public > > DirectoryIndex index.php /public/index.php > > > #Options Indexes FollowSymLinks MultiViews > Options +FollowSymlinks > AllowOverride All > #Order allow,deny > #allow from all > Require all granted > > > LogLevel debug > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > 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" > > > > Options FollowSymlinks > AllowOverride None > Require all granted > > > > 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 wrote: > > > > > > > > On Sat, Nov 11, 2023 at 10:37 PM bruce 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 wrote: > >> > > >> > > >> > > >> > On Sat, Nov 11, 2023 at 9:25 PM bruce 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 wrote: > >> >> > > >> >> > > >> >> > > >> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce 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 > >> >> >
Re: [users@httpd] ubuntu apache2
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 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 wrote: > > > > hi.. > > > > /etc/apache2# cat /etc/apache2/sites-available/wave.conf > > > > ServerAdmin f...@yahoo.com > > ServerName 161.35.5.174 > > ServerAlias temp > > DocumentRoot /var/www/html/wave/wave/public > > > > DirectoryIndex index.php /public/index.php > > > > > > #Options Indexes FollowSymLinks MultiViews > > Options +FollowSymlinks > > AllowOverride All > > #Order allow,deny > > #allow from all > > Require all granted > > > > > > LogLevel debug > > ErrorLog ${APACHE_LOG_DIR}/error.log > > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > > > > 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" > > > > > > > > Options FollowSymlinks > > AllowOverride None > > Require all granted > > > > ---- > > > > 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 wrote: > > > > > > > > > > > > On Sat, Nov 11, 2023 at 10:37 PM bruce 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 wrote: > > >> > > > >> > > > >> > > > >> > On Sat, Nov 11, 2023 at 9:25 PM bruce 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 > > >> >> wrote: > > >> >> > > > >> >> > > > >> >> > > > >> >> > On Sat, Nov 11, 2023 at 8:41 PM bruce wrote: > > >> >> >> > > >> >> >> arrggg.. > > >> >> >> > > >> >> >> Ok. something's going on that I'm missing.. > > >> >> >> > > >> >> >> I changed the wave.conf in the /etc/apache/sites-available > > >> >>
[users@httpd] Ubuntu/Apache2/laravel - test project setup in subdirs
Hi. Setting up a test laravel app to run as a subdir: ie /var/www/html/wave/wave/public (index.php) the idea is to have the url http://1.2.3.4/wave (is this possible? or dies it need to be http://1.2.3.4/wave/index.php in the url ?? I'd also like the base url to be http://1.2.3.4 --- to have a default page Having the test laravel apps in subdirs gives the project multiple test apps. I'd like the urls to be similar to http//1.2.3.4/app1 http//1.2.3.4/app2.. which means changes to the /etc/apache2/mods-available/alias.conf file and the /etc/apache2/sites-available/wave1.confwave2.conf... for the VirtHost setup As far as I can tell.. I think the basic "laravel" app displays sort of ok.. at least from the top url... However, the current test setup gives errs from the subdir.. which implies something amiss. So, I'm posting here, hoping that someone has set something up similar to what I'm going through. I'm more than willing to give complete access to the test digital ocean Ubuntu droplet/instance to check out this issue. thanks the test url --- http: // 161.35.5.174 http: // 161.35.5.174/ wave I realize this is more for laravel... but I'm throwing this out on a prayer!! thanks! again ps.. the basic dirr tree /var/www/html/wave/wave/public/index.php so the 2nd would be /var/www/htmlwave2/wave/public/index.php (at least I think it would be this...) - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] ubuntu apache2
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 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 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 wrote: > >>> > >>> hi.. > >>> > >>> /etc/apache2# cat /etc/apache2/sites-available/wave.conf > >>> > >>> ServerAdmin f...@yahoo.com > >>> ServerName 161.35.5.174 > >>> ServerAlias temp > >>> DocumentRoot /var/www/html/wave/wave/public > >>> > >>> DirectoryIndex index.php /public/index.php > >>> > >>> > >>> #Options Indexes FollowSymLinks MultiViews > >>> Options +FollowSymlinks > >>> AllowOverride All > >>> #Order allow,deny > >>> #allow from all > >>> Require all granted > >>> > >>> > >>> LogLevel debug > >>> ErrorLog ${APACHE_LOG_DIR}/error.log > >>> CustomLog ${APACHE_LOG_DIR}/access.log combined > >>> > >>> > >>> 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" > >>>
Re: [users@httpd] Ubuntu/Apache2/laravel - test project setup in subdirs
Frank, I create the alias in the mod.confcat /etc/apache2/mods-available/alias.conf # Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If # you do not use FancyIndexing, you may comment this out. Alias /icons/ "/usr/share/apache2/icons/" #Alias /wave/ "/var/www/html/wave" #Alias /wave/ "/var/www/html/wave" Alias /wave/ "/var/www/html/wave/wave/public/" Options FollowSymlinks AllowOverride None Require all granted at the same time.. here's the wave.conf for the VirtualHost directive. root@ubuntu-s-1vcpu-2gb-nyc1-01:/var/www/html# cat /etc/apache2/sites-available/wave.conf ServerAdmin f...@yahoo.com ServerName temp2 ServerAlias temp DocumentRoot /var/www/html/wave/wave/public DirectoryIndex index.html index.php Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options Indexes FollowSymLinks MultiViews ##Options -Indexes FollowSymlinks #Options FollowSymlinks #AllowOverride All ##Order allow,deny ##allow from all #Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined the target url that's giving me an issue.. http://161.35.5.174/wave/ <<<< current live site for now Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException PHP 8.2.10-2ubuntu1 9.52.16 The GET method is not supported for route /. Supported methods: HEAD... . . . which is interesting.. if I knew what it meant! On Sun, Nov 12, 2023 at 7:20 PM Frank Gingras wrote: > > > > On Sun, Nov 12, 2023 at 6:47 PM bruce wrote: >> >> Hi. >> >> Setting up a test laravel app to run as a subdir: >> ie /var/www/html/wave/wave/public (index.php) >> >> the idea is to have the url >> http://1.2.3.4/wave (is this possible? or dies it need to be >> http://1.2.3.4/wave/index.php in the url ?? >> >> I'd also like the base url to be >>http://1.2.3.4 --- to have a default page >> >> Having the test laravel apps in subdirs gives the project multiple test apps. >> >> I'd like the urls to be similar to >> http//1.2.3.4/app1 >> http//1.2.3.4/app2.. >> >> which means changes to the >>/etc/apache2/mods-available/alias.conf file >> >> and the >> /etc/apache2/sites-available/wave1.confwave2.conf... for the >> VirtHost setup >> >> As far as I can tell.. I think the basic "laravel" app displays sort of ok.. >> at least from the top url... >> >> However, the current test setup gives errs from the subdir.. which >> implies something amiss. >> >> So, I'm posting here, hoping that someone has set something up similar >> to what I'm going through. >> >> I'm more than willing to give complete access to the test digital >> ocean Ubuntu droplet/instance to check out this issue. >> >> thanks >> >> the test url --- http: // 161.35.5.174 http: // >> 161.35.5.174/ wave >> >> I realize this is more for laravel... but I'm throwing this out on a >> prayer!! >> >> thanks! again >> >> ps.. >> >> the basic dirr tree >> /var/www/html/wave/wave/public/index.php >> >> so the 2nd would be >> /var/www/htmlwave2/wave/public/index.php >> (at least I think it would be this...) >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > Again, all you need is the Alias directive, and you didn't show the errors > you encountered. > > And you created a new thread, yet again. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] weird/basic issue/question
I have a test/local apache server - digitalocean instance. Testing a php app. I have the /etc/sites-available /etc/mods-available I stopped the service, and restarted it. I tested the url: http://161.35.5.174/invoiceplane/sessions/login I then examined the tail -50 /var/log/apache/error.log and I expected to see something with the above url... instead, I get lines like.. [Wed Jul 03 15:56:00.454162 2024] [deflate:debug] [pid 23847] mod_deflate.c(869): [client 162.234.196.167:39160] AH01384: Zlib: Compressed 595 to 276 : URL /minthcm/install/index.php, referer: http://161.35.5.174/minthcm/ now... the minthcm is a disabled test app.. but I don't get why I'm seeing it in the err log when/right after testing the "invoiceplane" url. Haven't found anything yet via searching. thoughts/comments would be helpful. thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] weird/basic issue/question
Hi Frank. It does. I also tried an additional test app http://161.35.5.174/invoiceninja/ it also shows the "minthcm" in the error.log.. I've been researching this, and as of yet, haven't found a aha moment. I've got plenty of other test apps in the /var/www/html dirtree.. and they aren't showing.. I did a quick search/find in the /etc/sites-available and only find "minthcm" in the disabled conf file. any pointers as to where I might look? thanks On Wed, Jul 3, 2024 at 12:20 PM Frank Gingras wrote: > > > > On Wed, Jul 3, 2024 at 12:15 PM bruce wrote: >> >> I have a test/local apache server - digitalocean instance. >> >> Testing a php app. I have the >> /etc/sites-available >> /etc/mods-available >> >> I stopped the service, and restarted it. >> >> I tested the url: >> http://161.35.5.174/invoiceplane/sessions/login >> I then examined the >> tail -50 /var/log/apache/error.log >> >> and I expected to see something with the above url... >> >> instead, I get lines like.. >> [Wed Jul 03 15:56:00.454162 2024] [deflate:debug] [pid 23847] >> mod_deflate.c(869): [client 162.234.196.167:39160] AH01384: Zlib: >> Compressed 595 to 276 : URL /minthcm/install/index.php, referer: >> http://161.35.5.174/minthcm/ >> >> now... the minthcm is a disabled test app.. but I don't get why I'm >> seeing it in the err log when/right after testing the "invoiceplane" >> url. >> >> Haven't found anything yet via searching. >> >> thoughts/comments would be helpful. >> >> thanks >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > Your php application is redirecting / loading additional resources. Does > invoiceplane have a mailing list or other support venues? - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] weird/basic issue/question
Hi frank. I know apache doesn't maintain php apps. pretty sure this isn't a php app issue, unless there's been something cut/copy/paste in the diff apps. I'm actually thinking that there's something in apache configs causing this.. given that i'm getting the issue in apache err logs, from diff apps.. On Wed, Jul 3, 2024 at 12:54 PM Frank Gingras wrote: > > > > On Wed, Jul 3, 2024 at 12:45 PM bruce wrote: >> >> Hi Frank. >> >> It does. >> >> I also tried an additional test app >> http://161.35.5.174/invoiceninja/ >> >> it also shows the "minthcm" in the error.log.. >> >> I've been researching this, and as of yet, haven't found a aha moment. >> >> I've got plenty of other test apps in the /var/www/html dirtree.. and >> they aren't showing.. >> I did a quick search/find in the /etc/sites-available and only find >> "minthcm" in the disabled conf file. >> >> any pointers as to where I might look? >> >> thanks >> >> >> On Wed, Jul 3, 2024 at 12:20 PM Frank Gingras wrote: >> > >> > >> > >> > On Wed, Jul 3, 2024 at 12:15 PM bruce wrote: >> >> >> >> I have a test/local apache server - digitalocean instance. >> >> >> >> Testing a php app. I have the >> >> /etc/sites-available >> >> /etc/mods-available >> >> >> >> I stopped the service, and restarted it. >> >> >> >> I tested the url: >> >> http://161.35.5.174/invoiceplane/sessions/login >> >> I then examined the >> >> tail -50 /var/log/apache/error.log >> >> >> >> and I expected to see something with the above url... >> >> >> >> instead, I get lines like.. >> >> [Wed Jul 03 15:56:00.454162 2024] [deflate:debug] [pid 23847] >> >> mod_deflate.c(869): [client 162.234.196.167:39160] AH01384: Zlib: >> >> Compressed 595 to 276 : URL /minthcm/install/index.php, referer: >> >> http://161.35.5.174/minthcm/ >> >> >> >> now... the minthcm is a disabled test app.. but I don't get why I'm >> >> seeing it in the err log when/right after testing the "invoiceplane" >> >> url. >> >> >> >> Haven't found anything yet via searching. >> >> >> >> thoughts/comments would be helpful. >> >> >> >> thanks >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> >> > >> > Your php application is redirecting / loading additional resources. Does >> > invoiceplane have a mailing list or other support venues? >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > I still recommend asking the invoiceplane folks, preferably on their mailing > list, or most active support venue. > > Apache HTTPd doesn't maintain that php application. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] example of apache/node/nextjs -- reverse proxy setup
Hi. Trying to work my way through setting up/testing a scenario with nextjs where it uses Apache as a reverse proxy to serve the test files. Looking through a number of sites, but thought I'd ask the list as well. If anyone has set up this kind of situation, or has pointers to examples, I'd like to look over them. thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] reverse proxy setup
Hi. Testing a github app that appears to use/require reverse proxy to display results on the browser. The basic app uses npm/nextjs to generate content, Per different sites, the process uses PM2 to run the process, and to be able to show the content via an internal/local "server". This is accessed via -- http://127.0.0.1:3000. Using curl on the local/test server, content can be accessed via the site curl http://127.0.0.1:3000. My issue now, is how to create the Apache conf to be able to have the user at http://1.2.3.4/berat, be able to display the content. This requires somehow setting up the reverse proxy process, in the VirtHost of the config file. The test site is being run from a subdir /var/www/html/berat <<< Researching/testing hasn't had the light go off yet! Here's what I've got, but it's not correct. Pointers would be useful. (and possible explanation!) cat /etc/apache2/sites-available/berat.conf ServerAdmin f...@yahoo.com ServerName temp22 ServerAlias temp DocumentRoot /var/www/html/berat ProxyRequests Off ProxyPreserveHost On Require all granted ProxyPreserveHost On ProxyPreserveHost Off ProxyErrorOverride Off #ProxyPass/api/system-a/ https://external-domain.example2.org/system-a/ ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ #DocumentRoot /var/www/html/berat #ProxyRequests Off #ProxyPreserveHost On # # Require all granted # #ProxyPass / http://127.0.0.1:3000/ #ProxyPassReverse / http://127.0.0.1:3000/ #DirectoryIndex index.html index.php #Options -Indexes +FollowSymLinks +MultiViews Options +FollowSymLinks AllowOverride All Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options Indexes FollowSymLinks MultiViews ##Options -Indexes FollowSymlinks #Options FollowSymlinks #AllowOverride All ##Order allow,deny ##allow from all #Require all granted ##Alias "/berat" "/var/www/html/berat/" LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] reverse proxy setup
Hi Frank, Thanks for the reply. I'm still going through suggestions, as well as information from other sites. I'm still confused, and think I might be making things worse. Not sure if this is accepted as a question, but if you have apache/proxy skills, are you up for making a few $$! I'm thinking this is reasonably simple, but I'm missing something. The test server has multiple test apps, running off subfolders /var/www/html/test1 /var/www/html/test2 /var/www/html/berat Right now, for the test "berat" app, the changes I made are generating an internal 500 server error. The test url -- http://161.35.5.174/berat Thanks for your pointers/insight! weird thing now.. based on the current/listed apache conf file... i get the base "ubuntu/apache" default page now.. --the "berat" is trimed... = cat /etc/apache2/sites-available/berat.conf ServerAdmin f...@yahoo.com ServerName temp22 ServerAlias temp DocumentRoot /var/www/html/berat ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ #DocumentRoot /var/www/html/berat #ProxyRequests Off #ProxyPreserveHost On # # Require all granted # #ProxyPass / http://127.0.0.1:3000/ #ProxyPassReverse / http://127.0.0.1:3000/ #DirectoryIndex index.html index.php #Options -Indexes +FollowSymLinks +MultiViews Options +FollowSymLinks AllowOverride All Options -MultiViews Order allow,deny Allow from all #Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options Indexes FollowSymLinks MultiViews ##Options -Indexes FollowSymlinks #Options FollowSymlinks #AllowOverride All ##Order allow,deny ##allow from all #Require all granted ##Alias "/berat" "/var/www/html/berat/" LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined On Thu, Jul 11, 2024 at 9:40 AM Frank Gingras wrote: > > > > On Thu, Jul 11, 2024 at 8:02 AM Marc wrote: >> >> I am testing a bit with this: >> >> 32 >> 33 # files are still loaded from default host >> 34 Define defaulthost "" >> 35 Define proxyhost "" >> 36 >> 37 ProxyPreserveHost Off >> 38 ProxyAddHeaders On >> 39 SetOutputFilter proxy-html >> 40 ProxyHTMLEnable On >> 41 ProxyHTMLExtended On >> 42 >> 43 ProxyPass"https://${proxyhost}/"; >> 44 ProxyPassReverse "https://${proxyhost}/"; >> 45 >> 46 ProxyPassReverseCookieDomain "${proxyhost}" "${defaulthost}" >> 47 ProxyPassReverseCookiePath "/" "//" >> 48 >> 49 Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=None >> 50 >> 51 ProxyHTMLURLMap https://${proxyhost}/ >> https://${defaulthost}/ >> 52 >> 53 Options +ExecCGI +FollowSymLinks -MultiViews >> 54 >> >> > -Original Message- >> > From: bruce >> > Sent: Thursday, 11 July 2024 13:20 >> > To: users@httpd.apache.org >> > Subject: [users@httpd] reverse proxy setup >> > >> > Hi. >> > >> > Testing a github app that appears to use/require reverse proxy to >> > display results on the browser. >> > >> > The basic app uses npm/nextjs to generate content, Per different >> > sites, the process uses PM2 to run the process, and to be able to show >> > the content via an internal/local "server". This is accessed via -- >> > http://127.0.0.1:3000. >> > >> > Using curl on the local/test server, content can be accessed via the site >> > curl http://127.0.0.1:3000. >> > >> > My issue now, is how to create the Apache conf to be able to have the >> > user at http://1.2.3.4/berat, be able to display the content. This >> > requires somehow setting up the reverse proxy process, in the VirtHost >> > of the config file. The test site is being run from a subdir >> > /var/www/html/berat <<< >> > >> > Researching/testing hasn't had the light go off yet! >> > >> > Here's what I've got, but it
Re: [users@httpd] reverse proxy setup
updated typo.. weird thing now.. based on the current/listed apache conf file... i get the"Internal Server Error" page now.. On Thu, Jul 11, 2024 at 12:39 PM bruce wrote: > > Hi Frank, > > Thanks for the reply. > > I'm still going through suggestions, as well as information from other > sites. I'm still confused, and think I might be making things worse. > > Not sure if this is accepted as a question, but if you have > apache/proxy skills, are you up for making a few $$! > > I'm thinking this is reasonably simple, but I'm missing something. > > The test server has multiple test apps, running off subfolders > /var/www/html/test1 > /var/www/html/test2 > /var/www/html/berat > > Right now, for the test "berat" app, the changes I made are generating > an internal 500 server error. > > The test url -- http://161.35.5.174/berat > > Thanks for your pointers/insight! > > weird thing now.. based on the current/listed apache conf file... > i get the base "ubuntu/apache" default page now.. > --the "berat" is trimed... > > = > cat /etc/apache2/sites-available/berat.conf > > ServerAdmin f...@yahoo.com > ServerName temp22 > ServerAlias temp > > DocumentRoot /var/www/html/berat > > ProxyPass / http://127.0.0.1:3000/ > > ProxyPassReverse / http://127.0.0.1:3000/ > > > #DocumentRoot /var/www/html/berat > > > > > #ProxyRequests Off > #ProxyPreserveHost On > # > # Require all granted > # > > #ProxyPass / http://127.0.0.1:3000/ > > #ProxyPassReverse / http://127.0.0.1:3000/ > > #DirectoryIndex index.html index.php > > #Options -Indexes +FollowSymLinks +MultiViews > Options +FollowSymLinks > > AllowOverride All > Options -MultiViews > Order allow,deny > Allow from all > > #Require all granted > ##Options -Indexes +FollowSymLinks +MultiViews > AllowOverride All Require all granted > > > ##Options Indexes FollowSymLinks MultiViews > ##Options -Indexes FollowSymlinks > #Options FollowSymlinks > #AllowOverride All > ##Order allow,deny > ##allow from all > #Require all granted > > > ##Alias "/berat" "/var/www/html/berat/" > > > LogLevel debug > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > On Thu, Jul 11, 2024 at 9:40 AM Frank Gingras wrote: > > > > > > > > On Thu, Jul 11, 2024 at 8:02 AM Marc wrote: > >> > >> I am testing a bit with this: > >> > >> 32 > >> 33 # files are still loaded from default host > >> 34 Define defaulthost "" > >> 35 Define proxyhost "" > >> 36 > >> 37 ProxyPreserveHost Off > >> 38 ProxyAddHeaders On > >> 39 SetOutputFilter proxy-html > >> 40 ProxyHTMLEnable On > >> 41 ProxyHTMLExtended On > >> 42 > >> 43 ProxyPass"https://${proxyhost}/"; > >> 44 ProxyPassReverse "https://${proxyhost}/"; > >> 45 > >> 46 ProxyPassReverseCookieDomain "${proxyhost}" "${defaulthost}" > >> 47 ProxyPassReverseCookiePath "/" "//" > >> 48 > >> 49 Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=None > >> 50 > >> 51 ProxyHTMLURLMap https://${proxyhost}/ > >> https://${defaulthost}/ > >> 52 > >> 53 Options +ExecCGI +FollowSymLinks -MultiViews > >> 54 > >> > >> > -Original Message- > >> > From: bruce > >> > Sent: Thursday, 11 July 2024 13:20 > >> > To: users@httpd.apache.org > >> > Subject: [users@httpd] reverse proxy setup > >> > > >> > Hi. > >> > > >> > Testing a github app that appears to use/require reverse proxy to > >> > display results on the browser. > >> > > >> > The basic app uses npm/nextjs to generate content, Per different > >> > sites, the process uses PM2 to run the process, and to be able to show
Re: [users@httpd] reverse proxy setup
162.234.196.167:60276] AH01628: authorization result: granted (no directives) [Thu Jul 11 18:34:36.463485 2024] [proxy:debug] [pid 75267] mod_proxy.c(1521): [client 162.234.196.167:60276] AH01143: Running scheme http handler (attempt 0) [Thu Jul 11 18:34:36.463499 2024] [proxy:debug] [pid 75267] proxy_util.c(2576): AH00942: http: has acquired connection for (127.0.0.1:3000) [Thu Jul 11 18:34:36.463530 2024] [proxy:debug] [pid 75267] proxy_util.c(2641): [client 162.234.196.167:60276] AH00944: connecting http://127.0.0.1:3000/berat to 127.0.0.1:3000 [Thu Jul 11 18:34:36.463645 2024] [proxy:debug] [pid 75267] proxy_util.c(2864): [client 162.234.196.167:60276] AH00947: connected /berat to 127.0.0.1:3000 [Thu Jul 11 18:34:36.464155 2024] [proxy:debug] [pid 75267] proxy_util.c(3336): AH02824: http: connection established with 127.0.0.1:3000 (127.0.0.1:3000) [Thu Jul 11 18:34:36.464203 2024] [proxy:debug] [pid 75267] proxy_util.c(3525): AH00962: http: connection complete to 127.0.0.1:3000 (127.0.0.1) [Thu Jul 11 18:34:36.466804 2024] [proxy:debug] [pid 75267] proxy_util.c(2592): AH00943: http: has released connection for (127.0.0.1:3000) when accessing the server, running the PM2 server, and using curl.. curl http://127.0.0.1:3001 this generates the data/content.. which should (hopefully) be returned/displayed in the browser but for now.. http://161.35.5.174/berat gets --->> "Internal Server Error" On Thu, Jul 11, 2024 at 1:06 PM Frank Gingras wrote: > > > > On Thu, Jul 11, 2024 at 12:43 PM bruce wrote: >> >> updated typo.. >> >> weird thing now.. based on the current/listed apache conf file... >> i get the"Internal Server Error" page now.. >> >> On Thu, Jul 11, 2024 at 12:39 PM bruce wrote: >> > >> > Hi Frank, >> > >> > Thanks for the reply. >> > >> > I'm still going through suggestions, as well as information from other >> > sites. I'm still confused, and think I might be making things worse. >> > >> > Not sure if this is accepted as a question, but if you have >> > apache/proxy skills, are you up for making a few $$! >> > >> > I'm thinking this is reasonably simple, but I'm missing something. >> > >> > The test server has multiple test apps, running off subfolders >> > /var/www/html/test1 >> > /var/www/html/test2 >> > /var/www/html/berat >> > >> > Right now, for the test "berat" app, the changes I made are generating >> > an internal 500 server error. >> > >> > The test url -- http://161.35.5.174/berat >> > >> > Thanks for your pointers/insight! >> > >> > weird thing now.. based on the current/listed apache conf file... >> > i get the base "ubuntu/apache" default page now.. >> > --the "berat" is trimed... >> > >> > = >> > cat /etc/apache2/sites-available/berat.conf >> > >> > ServerAdmin f...@yahoo.com >> > ServerName temp22 >> > ServerAlias temp >> > >> > DocumentRoot /var/www/html/berat >> > >> > ProxyPass / http://127.0.0.1:3000/ >> > >> > ProxyPassReverse / http://127.0.0.1:3000/ >> > >> > >> > #DocumentRoot /var/www/html/berat >> > >> > >> > >> > >> > #ProxyRequests Off >> > #ProxyPreserveHost On >> > # >> > # Require all granted >> > # >> > >> > #ProxyPass / http://127.0.0.1:3000/ >> > >> > #ProxyPassReverse / http://127.0.0.1:3000/ >> > >> > #DirectoryIndex index.html index.php >> > >> > #Options -Indexes +FollowSymLinks +MultiViews >> > Options +FollowSymLinks >> > >> > AllowOverride All >> > Options -MultiViews >> > Order allow,deny >> > Allow from all >> > >> > #Require all granted >> > ##Options -Indexes +FollowSymLinks +MultiViews >> > AllowOverride All Require all granted >> > >> > >> > ##Options Indexes FollowSymLinks MultiViews >> > ##Options -Indexes FollowSymlinks >> > #Options FollowSymlinks >> > #AllowOverride All >> > ##Order allow,deny >> > ##allow from all >> >
Re: [users@httpd] reverse proxy setup
Hi Frank... update.. just discovered that the erris is from curl http://127.0.0.1:3000/berat "Internal Server Error" aha.. just tested it on a whim... but the internal curl without the "berat" returns data. ..so how/what's happening hmm On Thu, Jul 11, 2024 at 2:41 PM bruce wrote: > > Hi Frank! > > Again, thanks for all your replies... Hopefully, I'll eventually have > the "light" turn on! > > Here's updated information > -updated berat,conf -- for the virthost/config > -output from the -- /var/logs/apache/error.log > -output from the --- apachectl -S > and the display from the browser/url > > cat /etc/apache2/sites-available/berat.conf > > ServerAdmin f...@yahoo.com > ServerName temp22 > ServerAlias temp > > DocumentRoot /var/www/html/berat > > ProxyPass / http://127.0.0.1:3000/ > > ProxyPassReverse / http://127.0.0.1:3000/ > > > > > Options +FollowSymLinks > > AllowOverride All > Options -MultiViews > > Require all granted > ##Options -Indexes +FollowSymLinks +MultiViews > AllowOverride All Require all granted > > > > > LogLevel debug > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > > apachectl -S > AH00558: apache2: Could not reliably determine the server's fully > qualified domain name, using 10.10.0.9. Set the 'ServerName' directive > globally to suppress this message > VirtualHost configuration: > *:80 is a NameVirtualHost > default server temp22 > (/etc/apache2/sites-enabled/berat.conf:1)<<<<<<<<<<<<<<<<<<<< > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/berat.conf:1) <<<<<<<<<<<<<<<<<<<< > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/dolibarr.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/domainmod.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/drougnov.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/filgeary.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/flatpress.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/freescout.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/glozzome.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/invoiceninja.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/invoiceplane.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/larap.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/mantisbt.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/matomo.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/minthcm.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/petronius.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/priyansh.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/sendportal.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/snipe.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/uideck.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/userlp.conf:1) > alias temp > port 80 namevhost temp22 (/etc/apache2/sites-enabled/wave.conf:1) > alias temp > port 80 namevhost temp22 > (/etc/apache2/sites-enabled/zentaopms.conf:1) > alias temp > ServerRoot: "/etc/apache2" > Main DocumentRoot: "/var/www/html" > Main ErrorLog: "/var/log/apache2/error.log" > Mutex default: dir="/var/run/apache2/" mechanism=default > Mutex mpm-accept: using_defaults > Mutex watchdog-callback: using_def
Re: [users@httpd] reverse proxy setup
on the options.. ok. But I have no clue if they're the right options, as I'm looking over numerous sites, and copious testing -- trial/error to understand. there is no php involved, and the apache error log data I pasted appears to be the relevant data On Thu, Jul 11, 2024 at 2:50 PM Frank Gingras wrote: > > > > On Thu, Jul 11, 2024 at 2:41 PM bruce wrote: >> >> Hi Frank! >> >> Again, thanks for all your replies... Hopefully, I'll eventually have >> the "light" turn on! >> >> Here's updated information >> -updated berat,conf -- for the virthost/config >> -output from the -- /var/logs/apache/error.log >> -output from the --- apachectl -S >> and the display from the browser/url >> >> cat /etc/apache2/sites-available/berat.conf >> >> ServerAdmin f...@yahoo.com >> ServerName temp22 >> ServerAlias temp >> >> DocumentRoot /var/www/html/berat >> >> ProxyPass / http://127.0.0.1:3000/ >> >> ProxyPassReverse / http://127.0.0.1:3000/ >> >> >> >> >> Options +FollowSymLinks >> >> AllowOverride All >> Options -MultiViews >> >> Require all granted >> ##Options -Indexes +FollowSymLinks +MultiViews >> AllowOverride All Require all granted >> >> >> >> >> LogLevel debug >> ErrorLog ${APACHE_LOG_DIR}/error.log >> CustomLog ${APACHE_LOG_DIR}/access.log combined >> >> >> >> apachectl -S >> AH00558: apache2: Could not reliably determine the server's fully >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> globally to suppress this message >> VirtualHost configuration: >> *:80 is a NameVirtualHost >> default server temp22 >> (/etc/apache2/sites-enabled/berat.conf:1)<<<<<<<<<<<<<<<<<<<< >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/berat.conf:1) <<<<<<<<<<<<<<<<<<<< >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/dolibarr.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/domainmod.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/drougnov.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/filgeary.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/flatpress.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/freescout.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/glozzome.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/invoiceninja.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/invoiceplane.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/larap.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/mantisbt.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/matomo.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/minthcm.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/petronius.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/priyansh.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/sendportal.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/snipe.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/uideck.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/userlp.conf:1) >> alias temp >>
Re: [users@httpd] reverse proxy setup
right.. and that appears to be from sending the "berat" to the PM2 server... when I test -- curl http://127.0.0.1:3001/berat throws a "Internal Server Error" and when I examine the /root/.pm2/logs/waitlist-landing-page-error.log there appears to be a stacktrace/error data.. so this might be due to screwed up berat.conf config file... which is my expectation. On Thu, Jul 11, 2024 at 2:59 PM Frank Gingras wrote: > > > > On Thu, Jul 11, 2024 at 2:55 PM bruce wrote: >> >> on the options.. ok. But I have no clue if they're the right options, >> as I'm looking over numerous sites, and copious testing -- trial/error >> to understand. >> >> there is no php involved, and the apache error log data I pasted >> appears to be the relevant data >> >> On Thu, Jul 11, 2024 at 2:50 PM Frank Gingras wrote: >> > >> > >> > >> > On Thu, Jul 11, 2024 at 2:41 PM bruce wrote: >> >> >> >> Hi Frank! >> >> >> >> Again, thanks for all your replies... Hopefully, I'll eventually have >> >> the "light" turn on! >> >> >> >> Here's updated information >> >> -updated berat,conf -- for the virthost/config >> >> -output from the -- /var/logs/apache/error.log >> >> -output from the --- apachectl -S >> >> and the display from the browser/url >> >> >> >> cat /etc/apache2/sites-available/berat.conf >> >> >> >> ServerAdmin f...@yahoo.com >> >> ServerName temp22 >> >> ServerAlias temp >> >> >> >> DocumentRoot /var/www/html/berat >> >> >> >> ProxyPass / http://127.0.0.1:3000/ >> >> >> >> ProxyPassReverse / http://127.0.0.1:3000/ >> >> >> >> >> >> >> >> >> >> Options +FollowSymLinks >> >> >> >> AllowOverride All >> >> Options -MultiViews >> >> >> >> Require all granted >> >> ##Options -Indexes +FollowSymLinks +MultiViews >> >> AllowOverride All Require all granted >> >> >> >> >> >> >> >> >> >> LogLevel debug >> >> ErrorLog ${APACHE_LOG_DIR}/error.log >> >> CustomLog ${APACHE_LOG_DIR}/access.log combined >> >> >> >> >> >> >> >> apachectl -S >> >> AH00558: apache2: Could not reliably determine the server's fully >> >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> >> globally to suppress this message >> >> VirtualHost configuration: >> >> *:80 is a NameVirtualHost >> >> default server temp22 >> >> (/etc/apache2/sites-enabled/berat.conf:1)<<<<<<<<<<<<<<<<<<<< >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/berat.conf:1) <<<<<<<<<<<<<<<<<<<< >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/dolibarr.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/domainmod.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/drougnov.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/filgeary.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/flatpress.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/freescout.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/glozzome.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache2/sites-enabled/invoiceninja.conf:1) >> >> alias temp >> >> port 80 namevhost temp22 >> >> (/etc/apache
Re: [users@httpd] reverse proxy setup
A bit of progress... I can get the "content/data", but not the styles "css/js/etc.. as well as misc files... Looking over the browser/devtools/network, I see the styles comes from the following dirs: berat/public/ berat/.next/static berat/.next/static/chunks/app/ The test url --- http://161.35.5.174/berat the dir struct /var/www/html/berat the berat.conf is ServerAdmin f...@yahoo.com ServerName temp22 ServerAlias temp DocumentRoot /var/www/html/berat ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ #DocumentRoot /var/www/html/berat #ProxyRequests Off #ProxyPreserveHost On # # Require all granted # #ProxyPass / http://127.0.0.1:3000/ #ProxyPassReverse / http://127.0.0.1:3000/ #DirectoryIndex index.html index.php #Options -Indexes +FollowSymLinks +MultiViews Options +FollowSymLinks AllowOverride All Options -MultiViews #i think or 2.4 Order allow,deny #i think for 2.4 Allow from all #use for 2.4? Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options Indexes FollowSymLinks MultiViews ##Options -Indexes FollowSymlinks #Options FollowSymlinks #AllowOverride All ##Order allow,deny ##allow from all #Require all granted ##Alias "/berat" "/var/www/html/berat/" LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined thoughts/pointers on how to "merge" the styles files from the other dirs? also, the favicon.ico doesn't seem to exist in the test dir tree! On Thu, Jul 11, 2024 at 3:06 PM bruce wrote: > > right.. > > and that appears to be from sending the "berat" to the PM2 server... > > when I test -- curl http://127.0.0.1:3001/berat > throws a "Internal Server Error" > > and when I examine the > /root/.pm2/logs/waitlist-landing-page-error.log > there appears to be a stacktrace/error data.. > > so this might be due to screwed up berat.conf config file... which is > my expectation. > > > On Thu, Jul 11, 2024 at 2:59 PM Frank Gingras wrote: > > > > > > > > On Thu, Jul 11, 2024 at 2:55 PM bruce wrote: > >> > >> on the options.. ok. But I have no clue if they're the right options, > >> as I'm looking over numerous sites, and copious testing -- trial/error > >> to understand. > >> > >> there is no php involved, and the apache error log data I pasted > >> appears to be the relevant data > >> > >> On Thu, Jul 11, 2024 at 2:50 PM Frank Gingras wrote: > >> > > >> > > >> > > >> > On Thu, Jul 11, 2024 at 2:41 PM bruce wrote: > >> >> > >> >> Hi Frank! > >> >> > >> >> Again, thanks for all your replies... Hopefully, I'll eventually have > >> >> the "light" turn on! > >> >> > >> >> Here's updated information > >> >> -updated berat,conf -- for the virthost/config > >> >> -output from the -- /var/logs/apache/error.log > >> >> -output from the --- apachectl -S > >> >> and the display from the browser/url > >> >> > >> >> cat /etc/apache2/sites-available/berat.conf > >> >> > >> >> ServerAdmin f...@yahoo.com > >> >> ServerName temp22 > >> >> ServerAlias temp > >> >> > >> >> DocumentRoot /var/www/html/berat > >> >> > >> >> ProxyPass / http://127.0.0.1:3000/ > >> >> > >> >> ProxyPassReverse / http://127.0.0.1:3000/ > >> >> > >> >> > >> >> > >> >> > >> >> Options +FollowSymLinks > >> >> > >> >> AllowOverride All > >> >> Options -MultiViews > >> >> > >> >> Require all granted > >> >> ##Options -Indexes +FollowSymLinks +MultiViews > >> >> AllowOverride All Require all granted > >> >> > >> >> > >> >> > >> >> > >> >> LogLevel debug > >> >> ErrorLog ${APACHE_LOG_DIR}/error.log > >> >>
[users@httpd] apache reverse proxy question -- i think
I have a situation where I'm trying to create a foo.config file for a test apache app. in the html of the app, i have a href="/test.svg". the actual test.svg resides in the physical dir: /var/www/html/berat/public/test.svg so I'm trying to figure out how to handle this. As far as I can tell, this is a reverse proxie issue but I can't do another ProxyPass ' as I'm already doing the following which works... ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ is there some method that I trigger off the actual "filename" are there any pointers/examples you can point me to.. This appears to be the last issue I'm grappling with. thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apache reverse proxy question -- i think
I'd like something like:: ProxyPass /logo.svg http://1.2.3.4/berat/public/logo.svg ProxyPassReverse /logo.svg http://1.2.3.4/berat/public/logo.svg doesn't work ProxyPass logo.svg http://1.2.3.4/berat/public/logo.svg ProxyPassReverse logo.svg http://1.2.3.4/berat/public/logo.svg doesn't work in the page source href="/logo.svg" which should redirect to -- /var/www/html/berat/public/logo.svg or http://1.2.3.4/berat/public/logo.svg thanks On Fri, Jul 12, 2024 at 7:57 PM Frank Gingras wrote: > > > > On Fri, Jul 12, 2024 at 6:12 PM bruce wrote: >> >> I have a situation where I'm trying to create a foo.config file for a >> test apache app. >> >> in the html of the app, i have a href="/test.svg". >> >> the actual test.svg resides in the physical dir: >> /var/www/html/berat/public/test.svg >> >> so I'm trying to figure out how to handle this. As far as I can tell, >> this is a reverse proxie issue >> >> but I can't do >> >> another >> ProxyPass ' >> >> as I'm already doing the following which works... >> ProxyPass / http://127.0.0.1:3000/ >> ProxyPassReverse / http://127.0.0.1:3000/ >> >> is there some method that I trigger off the actual "filename" >> >> are there any pointers/examples you can point me to.. >> >> This appears to be the last issue I'm grappling with. >> >> thanks >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > You'll have to clarify what "trigger the filename" means, first. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] apache dir index question/issue
Hi. Trying to understand something. I have a file /etc/apache/sites-available/foo.conf I have an alias /etc/apache/mods-available/alias.conf Alias foo /var/www/html/foo The dir /var/www/html/foo has the test webapp... it has no .htaccess The sys is ubuntu, running apache2 and the /etc/apache/apache2.conf is the base file. When I disable the foo.conf and insert 1.2.3.4/foo in the browser... I'm getting a dir index! Is this due to the Alias... I'm really trying to get a basic err, and not being able to see the index. I've got a separate test system that works as expected, with no index listing displayed. I've tried to compare/figure out what's different, but I can't see it. thoughts would be welcome! I've copied the "foo.conf" from the working system to the current/test that doesn't.. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] apache setup/config properly..
ok. I've screwed something up... on the "working" test system I took a "working" test site, copied it to /var/www/html/mmm did a 1.2.3.4/mmm in the browser -- 1.2.3.4 points to the working test srvr.. and I get the "The requested URL was not found on this server." (expected).. do the same thing on the "weird" test server... and i get the copy of the running test site.. not the "err" for the "mmm" site dir.. I'm missing something... there is no "mmm.conf" for the mmm dir.. there's nothing under the list of the available sites for "mmm" it's as if I've installed/enabled something that's screwing up Apache/setup/config. This could also explain why I'm getting the dir/index listing. thoughts? thanks ps. As a test, I copied/tested the "apache.conf" from the working srvr to the srvr that's screwing up... no change in action/behaviour. Also copied/tested the foo.conf from the working srvr to the test srvr, and re-enabled it and restarted apache.. no behavior difference.. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apache setup/config properly..
Hi Frank. Thanks for reply. apachectl -S AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.10.0.9. Set the 'ServerName' directive globally to suppress this message VirtualHost configuration: ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/apache2/" mechanism=default Mutex mpm-accept: using_defaults Mutex watchdog-callback: using_defaults Mutex rewrite-map: using_defaults Mutex proxy: using_defaults 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 As a test, I did a complete "a2edissite * to disable "all" test sites on the srvr that's weird. I expected that a 1.2.3.4/foo in the browser would result in an err... Nope, it displayed the reg site. At the same time, the test site that displays the dir/ndx still displays the "dir/ndx" listing. Some research online shows that others have run into similar issues, but as of yet, I haven't figured out what I've done wrong. thanks On Tue, Jul 23, 2024 at 1:16 PM Frank Gingras wrote: > > > > On Tue, Jul 23, 2024 at 12:07 PM bruce wrote: >> >> ok. >> >> I've screwed something up... >> >> on the "working" test system >> I took a "working" test site, copied it to /var/www/html/mmm >> >> did a 1.2.3.4/mmm in the browser -- 1.2.3.4 points to the working test srvr.. >> and I get the >> "The requested URL was not found on this server." >>(expected).. >> >> do the same thing on the "weird" test server... >> and i get the copy of the running test site.. not the "err" for the >> "mmm" site dir.. >> >> I'm missing something... >> there is no "mmm.conf" for the mmm dir.. >> there's nothing under the list of the available sites for "mmm" >> it's as if I've installed/enabled something that's screwing up >> Apache/setup/config. >> >> This could also explain why I'm getting the dir/index listing. >> >> thoughts? >> >> thanks >> >> ps. As a test, I copied/tested the "apache.conf" from the working srvr >> to the srvr that's screwing up... no change in action/behaviour. >> Also copied/tested the foo.conf from the working srvr to the test >> srvr, and re-enabled it and restarted apache.. >> >> no behavior difference.. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > Start by providing the output from apachectl -S. > > As for the directory listing, if you alias a directory and have no directory > index file in the target, you *will* get a directory listing if Options > +Indexes is set. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apache setup/config properly..
defaults Mutex default: dir="/var/run/apache2/" mechanism=default Mutex mpm-accept: using_defaults 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 On Tue, Jul 23, 2024 at 1:32 PM Frank Gingras wrote: > > > > On Tue, Jul 23, 2024 at 1:29 PM bruce wrote: >> >> Hi Frank. >> >> Thanks for reply. >> >> apachectl -S >> AH00558: apache2: Could not reliably determine the server's fully >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> globally to suppress this message >> VirtualHost configuration: >> ServerRoot: "/etc/apache2" >> Main DocumentRoot: "/var/www/html" >> Main ErrorLog: "/var/log/apache2/error.log" >> Mutex default: dir="/var/run/apache2/" mechanism=default >> Mutex mpm-accept: using_defaults >> Mutex watchdog-callback: using_defaults >> Mutex rewrite-map: using_defaults >> Mutex proxy: using_defaults >> 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 >> >> As a test, I did a complete "a2edissite * to disable "all" test sites >> on the srvr that's weird. >> >> I expected that a 1.2.3.4/foo in the browser would result in an err... >> >> Nope, it displayed the reg site. >> >> At the same time, the test site that displays the dir/ndx still >> displays the "dir/ndx" listing. >> >> Some research online shows that others have run into similar issues, >> but as of yet, I haven't figured out what I've done wrong. >> >> thanks >> >> On Tue, Jul 23, 2024 at 1:16 PM Frank Gingras wrote: >> > >> > >> > >> > On Tue, Jul 23, 2024 at 12:07 PM bruce wrote: >> >> >> >> ok. >> >> >> >> I've screwed something up... >> >> >> >> on the "working" test system >> >> I took a "working" test site, copied it to /var/www/html/mmm >> >> >> >> did a 1.2.3.4/mmm in the browser -- 1.2.3.4 points to the working test >> >> srvr.. >> >> and I get the >> >> "The requested URL was not found on this server." >> >>(expected).. >> >> >> >> do the same thing on the "weird" test server... >> >> and i get the copy of the running test site.. not the "err" for the >> >> "mmm" site dir.. >> >> >> >> I'm missing something... >> >> there is no "mmm.conf" for the mmm dir.. >> >> there's nothing under the list of the available sites for "mmm" >> >> it's as if I've installed/enabled something that's screwing up >> >> Apache/setup/config. >> >> >> >> This could also explain why I'm getting the dir/index listing. >> >> >> >> thoughts? >> >> >> >> thanks >> >> >> >> ps. As a test, I copied/tested the "apache.conf" from the working srvr >> >> to the srvr that's screwing up... no change in action/behaviour. >> >> Also copied/tested the foo.conf from the working srvr to the test >> >> srvr, and re-enabled it and restarted apache.. >> >> >> >> no behavior difference.. >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> >> > >> > Start by providing the output from apachectl -S. >> > >> > As for the directory listing, if you alias a directory and have no >> > directory index file in the target, you *will* get a directory listing if >> > Options +Indexes is set. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> > > Since you have no vhosts, the DocumentRoot, Alias and Directory directives in > the server context will apply here. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apache setup/config properly..
0.0.1:3000/ local [Tue Jul 23 21:00:00.314514 2024] [proxy:debug] [pid 83188] proxy_util.c(2262): AH00931: initialized single connection worker in child 83188 for (127.0.0.1:3000) [Tue Jul 23 21:00:00.321607 2024] [proxy:debug] [pid 83189] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Tue Jul 23 21:00:00.321690 2024] [proxy:debug] [pid 83189] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Tue Jul 23 21:00:00.321747 2024] [proxy:debug] [pid 83189] proxy_util.c(2262): AH00931: initialized single connection worker in child 83189 for (127.0.0.1:3000) [Tue Jul 23 21:00:00.329192 2024] [proxy:debug] [pid 83190] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Tue Jul 23 21:00:00.329269 2024] [proxy:debug] [pid 83190] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Tue Jul 23 21:00:00.329320 2024] [proxy:debug] [pid 83190] proxy_util.c(2262): AH00931: initialized single connection worker in child 83190 for (127.0.0.1:3000) [Tue Jul 23 21:00:00.333077 2024] [mpm_prefork:notice] [pid 83186] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Tue Jul 23 21:00:00.333201 2024] [core:notice] [pid 83186] AH00094: Command line: '/usr/sbin/apache2' [Tue Jul 23 21:00:00.335050 2024] [proxy:debug] [pid 83191] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Tue Jul 23 21:00:00.335132 2024] [proxy:debug] [pid 83191] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Tue Jul 23 21:00:00.335196 2024] [proxy:debug] [pid 83191] proxy_util.c(2262): AH00931: initialized single connection worker in child 83191 for (127.0.0.1:3000) [Tue Jul 23 21:00:00.339094 2024] [proxy:debug] [pid 83192] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Tue Jul 23 21:00:00.339160 2024] [proxy:debug] [pid 83192] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Tue Jul 23 21:00:00.339205 2024] [proxy:debug] [pid 83192] proxy_util.c(2262): AH00931: initialized single connection worker in child 83192 for (127.0.0.1:3000) r my question is... why/what is causing this in the err system??? [Tue Jul 23 21:05:02.477373 2024] [proxy:debug] [pid 189806] proxy_util.c(2154): AH00925: initializing worker http://161.35.5.174/berat/publicfoo/ shared [Tue Jul 23 21:05:02.477377 2024] [proxy:debug] [pid 189806] proxy_util.c(2214): AH00927: initializing worker http://161.35.5.174/berat/publicfoo/ local On Tue, Jul 23, 2024 at 3:16 PM Frank Gingras wrote: > > > > On Tue, Jul 23, 2024 at 2:40 PM bruce wrote: >> >> By vhosts, I'm assuming you mean the conf files in the >> /etc/apache/sites-available >> /etc/apache/sites-enabled >> dirs. >> >> I have a lot of these files. I had removed/copied then to a separate >> dir, and then did a global a2dissite * to test if this made a diff in >> that when I test the http://1.2.3.4/foo if I get an err.. instead of >> the app or the dir index. >> >> when I copy the files back to the dir.. and redo the a2ensite for all >> the test sites.. >> >> apachectl -S >> AH00112: Warning: DocumentRoot [/var/www/html/berat_1] does not exist >> AH00112: Warning: DocumentRoot [/var/www/html/chainsafe2] does not exist >> AH00558: apache2: Could not reliably determine the server's fully >> qualified domain name, using 10.10.0.9. Set the 'ServerName' directive >> globally to suppress this message >> VirtualHost configuration: >> *:80 is a NameVirtualHost >> default server temp22 (/etc/apache2/sites-enabled/ajparrah.conf:1) >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/ajparrah.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/amaitou.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/balazsotakomaiya.conf:1) >> alias temp >> port 80 namevhost temp22 (/etc/apache2/sites-enabled/berat.conf:3) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/berat_used_to_work_now_idx.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/chainsafe.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/coralsio.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/dashdeipayan.conf:1) >> alias temp >> port 80 namevhost temp22 >> (/etc/apache2/sites-enabled/davehawkins.
Re: [users@httpd] apache setup/config properly..
My issue? I'm trying to understand why having what appears to be two copies of the same setup has one showing the dir/index, with the other showing the err that i expect.. http://198.211.116.12/berat The server is temporarily unable to service your request due to maintenance downtime or capacity problems... the working srvr... -- http://161.35.5.174/berat/ Index of /berat [ICO]NameLast modifiedSizeDescription [PARENTDIR]Parent Directory - [TXT]README.md2024-07-21 22:20 1.0K [DIR]app/2024-07-21 22:20 - . . . the dir listing, instead of the "err" statement -from the 2nd/err server they should be the same output. the 2 systems are using the ipaddress as they're tmp servers.. On Tue, Jul 23, 2024 at 5:25 PM Frank Gingras wrote: > > > > On Tue, Jul 23, 2024 at 5:16 PM bruce wrote: >> >> Hi Frank.. >> >> The 2 test servers..have pretty much the same test sites/dirs in the >> /var/www/html dir... >> >> They have the same config files. I basically did a clone of the srvr >> from digital ocean.. >> >> As a curiosity, I did a shutdown/restart of both test apache server, >> thinking the "tail -300 /var/logs/apache/error.log" would have pretty >> much the same output... >> >> I was wrong.. >> the error apache is... >> [Tue Jul 23 21:05:02.477041 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://161.35.5.174/berat/.next/static/chunks/ local >> [Tue Jul 23 21:05:02.477180 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (161.35.5.174:80) >> [Tue Jul 23 21:05:02.477194 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://161.35.5.174/berat/.next/static/media/ shared >> [Tue Jul 23 21:05:02.477210 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://161.35.5.174/berat/.next/static/media/ local >> [Tue Jul 23 21:05:02.477254 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (161.35.5.174:80) >> [Tue Jul 23 21:05:02.477259 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://161.35.5.174/berat/public/down.svg shared >> [Tue Jul 23 21:05:02.477263 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://161.35.5.174/berat/public/down.svg local >> [Tue Jul 23 21:05:02.477302 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (161.35.5.174:80) >> [Tue Jul 23 21:05:02.477318 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://161.35.5.174/berat/public/logo.svg shared >> [Tue Jul 23 21:05:02.477329 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://161.35.5.174/berat/public/logo.svg local >> [Tue Jul 23 21:05:02.477368 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (161.35.5.174:80) >> [Tue Jul 23 21:05:02.477373 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://161.35.5.174/berat/publicfoo/ shared >> [Tue Jul 23 21:05:02.477377 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://161.35.5.174/berat/publicfoo/ local >> [Tue Jul 23 21:05:02.477408 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (161.35.5.174:80) >> [Tue Jul 23 21:05:02.477413 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Tue Jul 23 21:05:02.477424 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Tue Jul 23 21:05:02.477459 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2262): AH00931: initialized single connection worker in >> child 189806 for (127.0.0.1:3000) >> [Tue Jul 23 21:05:02.477465 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2154): AH00925: initializing worker >> http://127.0.0.1:3000/ shared >> [Tue Jul 23 21:05:02.477475 2024] [proxy:debug] [pid 189806] >> proxy_util.c(2214): AH00927: initializing worker >> http://127.0.0.1:3000/ local >> [Tue Jul 23 21:05:02.477508 2024] [proxy
Re: [users@httpd] apache setup/config properly..
ByType SUBSTITUTE text/html text/xml text/javascript application/json #a Substitute "s|1920|744|i" #a Substitute "s|648|6488811|i" #test2 #ProxyPass /_next/image/http://161.35.5.174/berat/public/hero1 #http://161.35.5.174/berat/public #ProxyPassReverse /_next/image/ http://161.35.5.174/berat/public/hero1 #http://161.35.5.174/berat/public # ProxyPass "/_next/image?url=%2Fhero.jpg&w=750&q=75" http://161.35.5.174/berat/public/hero1 # ProxyPassReverse "/_next/image?url=%2Fhero.jpg&w=750&q=75" http://161.35.5.174/berat/public/hero1 # ProxyPass "/_next/image?url=/hero.jpg&w=640&q=75" http://161.35.5.174/berat/public/hero2 # ProxyPassReverse "/_next/image?url=/hero.jpg&w=640&q=75" http://161.35.5.174/berat/public/hero2 #DocumentRoot /var/www/html/berat Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None #ProxyRequests Off #ProxyPreserveHost On # # Require all granted # #ProxyPass / http://127.0.0.1:3000/ #ProxyPassReverse / http://127.0.0.1:3000/ #DirectoryIndex index.html index.php #Options -Indexes +FollowSymLinks +MultiViews Options +FollowSymLinks +MultiViews AllowOverride All #Options -MultiViews #i think or 2.4 Order allow,deny #i think for 2.4 Allow from all #use for 2.4? Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ##Options Indexes FollowSymLinks MultiViews ##Options -Indexes FollowSymlinks #Options FollowSymlinks #AllowOverride All ##Order allow,deny ##allow from all #Require all granted ##Alias "/berat" "/var/www/html/berat/" LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined as far as I can determine, the enabled/installed mods for apache are the same on both systems. any thoughts/comments for why the test servers would have diff displays for same code? the url(s) is actual test servers On Tue, Jul 23, 2024 at 7:00 PM Frank Gingras wrote: > > > > On Tue, Jul 23, 2024 at 6:39 PM bruce wrote: >> >> My issue? >> >> I'm trying to understand why having what appears to be two copies of >> the same setup has one showing the dir/index, with the other showing >> the err that i expect.. >> >> http://198.211.116.12/berat >> The server is temporarily unable to service your request due to >> maintenance downtime or capacity problems... >> >> the working srvr... >> >> -- >> >> http://161.35.5.174/berat/ >> Index of /berat >> [ICO]NameLast modifiedSizeDescription >> [PARENTDIR]Parent Directory - >> [TXT]README.md2024-07-21 22:20 1.0K >> [DIR]app/2024-07-21 22:20 - >> . >> . >> . >> >> the dir listing, instead of the "err" statement >> -from the 2nd/err server >> >> >> they should be the same output. >> >> the 2 systems are using the ipaddress as they're tmp servers.. >> >> On Tue, Jul 23, 2024 at 5:25 PM Frank Gingras wrote: >> > >> > >> > >> > On Tue, Jul 23, 2024 at 5:16 PM bruce wrote: >> >> >> >> Hi Frank.. >> >> >> >> The 2 test servers..have pretty much the same test sites/dirs in the >> >> /var/www/html dir... >> >> >> >> They have the same config files. I basically did a clone of the srvr >> >> from digital ocean.. >> >> >> >> As a curiosity, I did a shutdown/restart of both test apache server, >> >> thinking the "tail -300 /var/logs/apache/error.log" would have pretty >> >> much the same output... >> >> >> >> I was wrong.. >> >> the error apache is... >> >> [Tue Jul 23 21:05:02.477041 2024] [proxy:debug] [pid 189806] >> >> proxy_util.c(2214): AH00927: initializing worker >> >> http://161.35.5.174/berat/.next/static/chunks/ local >> >> [Tue Jul 23 21:05:02.477180 2024] [proxy:debug] [pid 189806] >> >> proxy_util.c(2262): AH00931: initialized single connection worker in >> >> child 189806 for (161.35.5.174:
[users@httpd] apachectl -S question/confusion?
Hi. Trying to track down an issue, and I'm going back to basics to figure out exactly what the DocRoot should be for my test. I've copied my test site to "/var/www/html2/berat" I've got the vhost file in /etc/apache2/sites-available/berat.conf in the file I have documentroot /var/www/html2/berat directory /var/www/html/berat a2dissiteshows only the "berat" site/app so no other site/app is configured.. so when I run apachectl -S I get VirtualHost configuration: *:80 temp22 (/etc/apache2/sites-enabled/berat.conf:3) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" <<< why Main ErrorLog: "/var/log/apache2/error.log" Mutex proxy: using_defaults Mutex default: dir="/var/run/apache2/" mechanism=default Mutex mpm-accept: using_defaults Mutex watchdog-callback: using_defaults Mutex rewrite-map: using_defaults 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 which has Main DocumentRoot: "/var/www/html" <<< why where would this be set.. why wouldn't this be in the "berat.conf" ?? thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apachectl -S question/confusion?
Oh... So more or less a "dummy"/fall through location in the event the "vhost" isn't set properly? so having the vhost -- berat.conf set to "/var/www/html2/berat" is the defined docRoot.. On Wed, Jul 24, 2024 at 10:07 AM Eric Covener wrote: > > > Main DocumentRoot: "/var/www/html" <<< why > > There is an implicit global server configuration used when requests > don't match any IP-based virtual host. > > - > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] apache setup/config properly..
22:40:29.377105 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of : granted [Thu Jul 25 22:40:29.377376 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.377383 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of : granted [Thu Jul 25 22:40:29.377785 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.377794 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of : granted [Thu Jul 25 22:40:29.378009 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.378013 2024] [authz_core:debug] [pid 7493] mod_authz_core.c(815): [client 162.234.196.167:34294] AH01626: authorization result of : granted [Thu Jul 25 22:40:29.378590 2024] [deflate:debug] [pid 7493] mod_deflate.c(904): [client 162.234.196.167:34294] AH01384: Zlib: Compressed 3604 to 692 : URL / [Thu Jul 25 22:40:29.522509 2024] [authz_core:debug] [pid 7494] mod_authz_core.c(815): [client 162.234.196.167:34296] AH01626: authorization result of Require all granted: granted [Thu Jul 25 22:40:29.522544 2024] [authz_core:debug] [pid 7494] mod_authz_core.c(815): [client 162.234.196.167:34296] AH01626: authorization result of : granted [Thu Jul 25 22:40:29.522699 2024] [core:info] [pid 7494] [client 162.234.196.167:34296] AH00128: File does not exist: /var/www/html/berat/favicon.ico [Thu Jul 25 22:40:29.980110 2024] [proxy:debug] [pid 7499] proxy_util.c(2154): AH00925: initializing worker http://127.0.0.1:3000/ shared [Thu Jul 25 22:40:29.980177 2024] [proxy:debug] [pid 7499] proxy_util.c(2214): AH00927: initializing worker http://127.0.0.1:3000/ local [Thu Jul 25 22:40:29.980249 2024] [proxy:debug] [pid 7499] proxy_util.c(2262): AH00931: initialized single connection worker in child 7499 for (127.0.0.1:3000) -- so... basically, the app running on the "http://198.211.116.12/berat"; shows the "page" the app running on the "http://161.35.5.174/berat"; shows the dir ndx!!! as far as I can tell, the same files are in both test srvrs. as to the "data" from the "nextjs" srvr (pms) this is generated by running pm2 start npm --name "waitlist-landing-page" -- start from the cmdline while in the /var/www/html/berat dir to validate, you can run "curl http://127.0.0.1:3000"; which displays the actual data/content that is/should be inserted in the page. I suspect the issue will be something subtle. But I can't see it. The /var/www/html dir has a number of other test sites, but these shouldn't be an issue... There is only the one "berat" test app the's enabled -- "a2ensite berat" Each server has the same installed apache "mods" as well. The error logs start at the beginning where I did the "system restart", followed by selecting the URL... On Wed, Jul 24, 2024 at 9:46 AM Frank Gingras wrote: > > > > On Wed, Jul 24, 2024 at 6:53 AM bruce wrote: >> >> Have rwo.3 test ubuntu servers - digital ocean. >> >> 1st server contains the initial list of webapps to test. >> Apps reside in /var/www/html/... >> Apps have >> chown www-data:www-data >> chmod 755 >> >> The tgt app >> /var/www/html/berat >> >> The vhosts reside >> /etc/apache2/sites-available >> berat.conf >> >> The 2nd test srvr is a "clone" of the 1st. So the action/webapps >> should run the same. >> >> However, running into a weird issue. >> >> The test "berat" uses a reverse proxy with a node app, to generate >> content for the app. >> When the node server isn't running, the app should display an err. >> >> test srvr1 >> >> http://161.35.5.174/berat/ >> Index of /berat >> [ICO]NameLast modifiedSizeDescription >> [PARENTDIR]Parent Directory - >> [TXT]README.md2024-07-21 22:20 1.0K >> [DIR]app/2024-07-21 22:20 - >> . >> . >> . >> >> the dir listing, instead of the "err" statement >> >> >> -from the 2nd server >> http://198.211.116.12/berat >> The server is temporarily unable to service your request due to >> maintenance downtime or capacity problems. Please try again later. >> >> the working
Re: [users@httpd] apache setup/config properly..
hi. With the exception of the Apache2,conf files (I removed most of the comments), the vhost files are pretty much comment free with only a few commented out lines. The error logs are provided to give you/the reader the ability to compare if needed. thanks On Thu, Jul 25, 2024 at 11:49 PM Frank Gingras wrote: > > > > On Thu, Jul 25, 2024 at 6:59 PM bruce wrote: >> >> Hi Frank. >> >> I stripped out a bunch of the comments. >> For each test server, I have >> apache.conf >> berat.conf for the "/var/www/html/berat" the test app causing issues *** >> /var/log/apache/error.logtail -200 enough to compare each server/run >> >> and some overview/steps. >> >> I can easily provide access to the working "clone" if that would help. >> i'm leery of granting access to the test srvr that's screwing up, as >> it has stuff that's in flux right now! >> >> each of the test should give the same output, which would be the >> content/data, not the index/dir listing. >> >> To begin, the test app I'm running is fom github, generating a nextjs >> app, that is served by Apache via "http://127.0.0.1:3000";. (The app is >> https://github.com/berat/waitlist-landing-page). >> >> The two/2 servers:: >> http://198.211.116.12/berat >> The server is temporarily unable to service your request due to >> maintenance downtime or capacity problems. Please try again later. >> >> the working srvr... >> (this happens when the nextjs pm2 server isn't running.. when the >> next/pm2 server is running, the site displays data) >> >> >> the tst srvr that's screwing up.. >> >> http://161.35.5.174/berat/ >> Index of /berat >> [ICO]NameLast modifiedSizeDescription >> [PARENTDIR]Parent Directory - >> [TXT]README.md2024-07-21 22:20 1.0K >> [DIR]app/2024-07-21 22:20 - >> . >> . >> . >> >> the dir listing, instead of the "err" statement >> >> >> >> >> >> The 2 test instances are comprised of Apache, the "/var/www/html" dir, >> as well as the associated test web apps. >> >> The only app I'm having an issue with for now, is the "berat" app. >> >> The existing apps for the "http://198.211.116.12/berat"; test site are >> >> >> apache2.conf >> /etc/apache2/apache2.conf >> cat /etc/apache2/apache2.conf >> >> # NOTE! If you intend to place this on an NFS (or otherwise network) >> # mounted filesystem then please read the Mutex documentation (available >> # at http://httpd.apache.org/docs/2.4/mod/core.html#mutex>); >> # you will save yourself a lot of trouble. >> # >> # Do NOT add a slash at the end of the directory path. >> # >> #ServerRoot "/etc/apache2" >> >> # >> # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. >> # >> #Mutex file:${APACHE_LOCK_DIR} default >> >> # >> # The directory where shm and other runtime files will be stored. >> # >> >> DefaultRuntimeDir ${APACHE_RUN_DIR} >> >> # >> # PidFile: The file in which the server should record its process >> # identification number when it starts. >> # This needs to be set in /etc/apache2/envvars >> # >> PidFile ${APACHE_PID_FILE} >> >> # >> # Timeout: The number of seconds before receives and sends time out. >> # >> Timeout 300 >> >> # >> # KeepAlive: Whether or not to allow persistent connections (more than >> # one request per connection). Set to "Off" to deactivate. >> # >> KeepAlive On >> >> # >> # MaxKeepAliveRequests: The maximum number of requests to allow >> # during a persistent connection. Set to 0 to allow an unlimited amount. >> # We recommend you leave this number high, for maximum performance. >> # >> MaxKeepAliveRequests 100 >> >> # >> # KeepAliveTimeout: Number of seconds to wait for the next request from the >> # same client on the same connection. >> # >> KeepAliveTimeout 5 >> >> >> # These need to be set in /etc/apache2/envvars >> User ${APACHE_RUN_USER} >> Group ${APACHE_RUN_GROUP} >> >> # >> # HostnameLookups: Log the names of clients or just their IP addresses >> # e.g., www.apache.org (on) or 204.62.129.132 (off). >> # The default is off because it'd be overall better for the net if people >> # had to knowingly turn this feature on
[users@httpd] setting up/running apache reverse proxy/PM2 node server
Hi, for those who have followed my attempts, thanks. This is a trimmed down attempt. Found some additional examples, and managed to get the following to "work", once! Not sure why it stopped, but I now get a 403/Fobidden err. error.log inspection shows / Cannot serve directory /var/www/html/berat/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive Which is odd.. as the PM2 server doesn't create any of these file types as far as I can tell. I think I did a "systemctl stop apache2" "systemctl start apache2" to test and after the "start", the 403 was displayed. Here's the test vhost. The initial apache2.conf is the default with no changes. The test site that has the 403 is http://161.35.5.174/berat The working test site is.. http://198.211.116.12/berat the berat_h.conf file is ServerAdmin f...@yahoo.com ServerName temp223a ServerAlias temp3a # #https://medium.com/@unishubh1/production-ready-node-js-using-reverse-proxy-smartscribs-2cf95e58e002 # # as test.. run from html2 berat_h # all other apps are in html # this is the same as the "clone" vhost #jul25/24 #stripped out DocumentRoot /var/www/html/berat #test for styles.. #does order matter??? -- the actual ip is used to test.. # #RewriteEngine On #test frm web ProxyRequests Off ProxyPreserveHost On ProxyVia Full ## gets the 200 code for the content.. ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ #test #ttest substitute below #RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" # Substitute "s|/_next/image?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" #EnableSendfile off # test above #DocumentRoot /var/www/html/berat #Header Set Pragma "no-cache" #Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" #Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" #Header Unset ETag #FileETag None #DirectoryIndex index.html index.php #Options -Indexes +FollowSymLinks +MultiViews Options -Indexes +FollowSymLinks #AllowOverride All AllowOverride None #Options -MultiViews #i think or 2.4 Order allow,deny #i think for 2.4 Allow from all #use for 2.4? Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined OK.. WTH Just retried the err srvr.. and the page is now showing...!!! So something is happening that's not in the conf file? Could it be some cache thing? Some node/PM2 thing? Some timing thing? Something else?? I'm completely at a loss to explain this behaviour. thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] setting up/running apache reverse proxy/PM2 node server
Hi all/Frank! I've managed to "get" 2 different test sites running separately. They each have different "vhost" config files. They each have different pm2 server port addresses However, when I a2ensite berat_h chainsafe systemctl stop apache2 systemctl start apache2 and in each dir run the pm2 server to generate the display for the test page/sites /var/www/html/berat pm2 start npm --name "waitlist-landing-page" -- start curl http://127.0.0.01:3000 /var/www/html/chainsafe pm2 start npm --name "mlanding" -- start curl http://127.0.0.01:3001 data is present.. and as i said, when doing the above for one of the test sites at a time, things appear to work.. when doing both, the 1st test site -- the "berat" works/displays.. But the 2nd generates an err if the error.log [Sat Jul 27 22:45:43.549642 2024] [core:info] [pid 49527] [client 162.234.196.167:51832] AH00128: File does not exist: /var/www/html/berat/chainsafe as if the "docroot/directory is combined??? the two vhosts, stripped down to relevant sections... cat chainsafe.conf ServerAdmin f...@yahoo.com ServerName temp22cs ServerAlias tempcs DocumentRoot /var/www/html/chainsafe ## gets the 200 code for the content.. ProxyPass /chainsafe http://127.0.0.1:3001/ ProxyPassReverse /chainsafe http://127.0.0.1:3001/ Options -Indexes +FollowSymLinks AllowOverride None Require all granted #Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined cat berat_h.conf ServerAdmin f...@yahoo.com ServerName temp223h ServerAlias temp3h DocumentRoot /var/www/html/berat #test for styles.. #does order matter??? -- the actual ip is used to test.. ## gets the 200 code for the content.. ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ Options -Indexes +FollowSymLinks AllowOverride None Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined any thoughts/ideas?? thanks On Fri, Jul 26, 2024 at 6:50 PM Frank Gingras wrote: > > > > On Fri, Jul 26, 2024 at 6:14 PM bruce wrote: >> >> Hi, for those who have followed my attempts, thanks. This is a trimmed >> down attempt. >> >> Found some additional examples, and managed to get the following to >> "work", once! >> >> Not sure why it stopped, but I now get a 403/Fobidden err. error.log >> inspection shows >> / >> Cannot serve directory /var/www/html/berat/: No matching >> DirectoryIndex >> (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) >> found, and server-generated directory index forbidden by Options >> directive >> >> Which is odd.. as the PM2 server doesn't create any of these file >> types as far as I can tell. >> >> I think I did a >> "systemctl stop apache2" >>"systemctl start apache2" >> to test >> and after the "start", the 403 was displayed. >> >> Here's the test vhost. The initial apache2.conf is the default with no >> changes. >> >> The test site that has the 403 is >> http://161.35.5.174/berat >> >> The working test site is.. >> http://198.211.116.12/berat >> >> the berat_h.conf file is >> >> ServerAdmin f...@yahoo.com >> ServerName temp223a >> ServerAlias temp3a >> # >> #https://medium.com/@unishubh1/production-ready-node-js-using-reverse-proxy-smartscribs-2cf95e58e002 >> # >> # as test.. run from html2 berat_h >> # all other apps are in html >> # this is the same as the "clone" vhost >> #jul25/24 >> #stripped out >> DocumentRoot /var/www/html/berat >> >> #test for styles.. >> #does order matter??? -- the actual ip is used to test.. >> >> >> # >> >> >> #RewriteEngine On >> >> #test frm web >> ProxyRequests Off >> ProxyPreserveHost On >> ProxyVia Full >> >> ## gets the 200 code for the content.. >> ProxyPass /berat http://127.0.0.1:3000/ >> ProxyPassReverse /berat http://127.0.0.1:3000/ >> >> #test >> >> #ttest substitute below >> #RewriteEngine On >> SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; >> ProxyHTMLInterp On >> ProxyHTMLExtended Off >> >> >> AddOutputFilterByType
[users@httpd] reverse proxy -- showing directory index
Hi. I'm testing out a github site. I had posted most of this awhile ago, and it had appears to work. However, something is amiss/screwing up on my part. In other words, FUBAR! Instead of getting the site content, getting the directory index. The test app: https://github.com/berat/waitlist-landing-page It's a node app that I'm running -- http://127.0.0.1:3000 and using "pm2" and reverse proxy with apache2 to serve the page. The test url is -->> http://161.35.5.174/berat (if it were to work, as it did for a bit) The docroot /var/www/html/berat config file /etc/apache2/berat.conf cat berat.conf ServerAdmin f...@yahoo.com ServerName temp22 ServerAlias temp DocumentRoot /var/www/html/berat RewriteEngine On ProxyPass /berat http://127.0.0.1:3000 ProxyPassReverse /berat http://127.0.0.1:3000 RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None Options +FollowSymLinks +MultiViews AllowOverride All #use for 2.4? Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined for the above berat.conf file, I tested the following as well ProxyPass /berat/ http://127.0.0.1:3000/ ProxyPassReverse /berat/ http://127.0.0.1:3000/ ProxyPass /berat/ http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000 ProxyPass "/berat" http://127.0.0.1:3000"; ProxyPassReverse "/berat" http://127.0.0.1:3000"; ProxyPass "/berat/" http://127.0.0.1:3000/"; ProxyPassReverse "/berat/" http://127.0.0.1:3000/"; ProxyPass "/berat/" http://127.0.0.1:3000/"; ProxyPassReverse "/berat" http://127.0.0.1:3000"; ProxyPass / http://127.0.0.1:3000 ProxyPassReverse / http://127.0.0.1:3000 the process was a2dissite berat a2ensite berat systemctl reload apache2 at the same time, from the /var/www/html/berat the "pm2" is stopped/restarted "stop" rm -rf /root/.pm2 ls -al /root/.pm2 pkill -f PM2 ps -aux | grep -i "PM2" "restart" sudo -u www-data pm2 start npm --name "waitlist-landing-page" -- start curl http://127.0.0.1:3000 at this point, the "pm2" server is generating the content, which should be displayed via apache/server Any/all pointers (frank!!) will be tested. For the life of me, I can't seem to get this to work. I've looked/rechecked the past email threads, but I'm still missing something. ps. The test process is running on a throwaway digitalocean instacne/ubuntu. thanks - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] node/apache -- reverse proxy subfolder
(had created a thread for this a few days ago.. but it was accidentally deleted!) Hi Frank/list. This is continuing on my issue of figuring out how to have a test github/node app run from apache2. Instead of getting the site content, I seem to get -->"403 forbidden No matching DirectoryIndex..." my test ip is http://161.35.5.174/berat. In order to test that I can access the test url, I created a test app, that I could access without the reverse proxy. The test was http://161.35.5.174/berat/aa.html, and displyed the test msg.. So, getting to the "site/url" should work. As I've mentioned before, the test app: https://github.com/berat/waitlist-landing-page It's a node app that I'm running -- http://127.0.0.1:3000 and using "pm2" and reverse proxy with apache2 to serve the page. The test url is -->> http://161.35.5.174/berat (if it were to work, as it did for a bit) The docroot /var/www/html/berat config file /etc/apache2/berat.conf cat berat.conf ServerAdmin f...@yahoo.com ServerName temp22 ServerAlias temp DocumentRoot /var/www/html/berat RewriteEngine On ProxyPass /berat http://127.0.0.1:3000 ProxyPassReverse /berat http://127.0.0.1:3000 RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None Options +FollowSymLinks +MultiViews AllowOverride All #use for 2.4? Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined for the above berat.conf, I've tested the following as well: ProxyPass /berat http://127.0.0.1:3000/ ProxyPassReverse /berat http://127.0.0.1:3000/ ProxyPass /berat/ http://127.0.0.1:3000/ ProxyPassReverse /berat/ http://127.0.0.1:3000/ ProxyPass /berat http://127.0.0.1:3000/berat ProxyPassReverse /berat http://127.0.0.1:3000/berat ProxyPass /berat/ http://127.0.0.1:3000/berat/ ProxyPassReverse /berat/ http://127.0.0.1:3000/berat/ all of these, oin other words, everything I'ver tried gets the same weird behavior.. the initial url is http://161.35.5.174/berat after testing the url, the url is changed to http://161.35.5.174 and i get the "403 forbidden" As far as I can tell in the errolog, i see the "No matching DirectoryIndex" entry.. I've also tried "
[users@httpd] Re: node/apache -- reverse proxy subfolder
Hi. This is a follow up to the issue I posted earlier with the Github app/https://github.com/berat/waitlist-landing-page. The app is a node app that I wanted to display via Apache/ubuntu. I'm posting this here as a dat apoint to anyone who might search for node/pm2/apache/reverse proxy! There are other ways to handle this, but this is what I managed to put together, and it seems to work for now. If others can update the solution, or provide additional insight/information to make it better, feel free to expand the solution. As an example, the "regaex" could use an explanation as to what's going on with the couple of lines of the copnmfig file. Steps to run: download app from github i choose to use /var/www/html/berat_tmp /var/www/html/berat copy into berat_tmp setup the ubuntu server update with updated apps/packages npm install pm2 -g (global) -- for the node pm2 server --- this runs locally to hande the berat/node app within berat_tmp/package.json -- setup/update the packages/dependencies in the berat_tmp dir rm package-lock.json rm -rf node_modules npm install npm run build>> creates the .next cp the .next to the "berat" dir run from the "berat" dir which has the .next files in the dir.. cd /var/www/html/berat rm -rf berat/* chown -R www-data:www-data berat chmod -R 777 berat cp -rf berat_tmp/.next/. berat/. a2dissite berat a2ensite berat systemctl restart apache2 rm -rf /root/.pm2 ls -al /root/.pm2 pkill -f PM2 ps -aux | grep -i "PM2" <<<< use this from html/berat dir pm2 start npm --name "waitlist-landing-page" -- start to verify the PM2 is running.. curl http://127.0.0.1:3000 test berat.conf # # aug23_24 # # ServerAdmin f...@yahoo.com ServerName temp22qq ServerAlias tempqq ProxyRequests Off ProxyPreserveHost On ProxyVia Full DocumentRoot /var/www/html/berat #test for styles.. #does order matter??? -- the actual ip is used to test.. RewriteEngine On #try using the attached dir RewriteRule ^/?$ /berat/ [R=permanent,L] ProxyPass http://127.0.0.1:3000 ProxyPassReverse /berat http://127.0.0.1:3000 #ttest substitute below RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None #Options -Indexes +FollowSymLinks +MultiViews #aOptions -Indexes +FollowSymLinks Options -Indexes AllowOverride All #use for 2.4? Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined On Fri, Aug 23, 2024 at 1:13 PM bruce wrote: > > (had created a thread for this a few days ago.. but it was > accidentally deleted!) > > Hi Frank/list. > > This is continuing on my issue of figuring out how to have a test > github/node app run from apache2. > > Instead of getting the site content, I seem to get -->"403 forbidden > No matching DirectoryIndex..." > > > my test ip is http://161.35.5.174/berat. > > In order to test that I can access the test url, I created a test app, > that I could access without the reverse proxy. The > test was http://161.35.5.174/berat/aa.html, and displyed the test > msg.. So, getting to the "site/url" should work. > > As I've mentioned before, the test app: > https://github.com/berat/waitlist-landing-page > It's a node app that I'm running -- http://127.0.0.1:3000 > and using "pm2" and reverse proxy with apache2 to serve the page. > > The test url is -->> http://161.35.5.174/berat (if it were to work, > as it did for a bit) > > The docroot > /var/www/html/berat > > config file > /etc/apache2/berat.conf > cat berat.conf > > > > ServerAdmin f...@yahoo.com > ServerName temp22 > ServerAlias temp > > DocumentRoot /var/www/html/berat > > RewriteEngine On > > ProxyPass /berat http://127.0.0.1:3000 > ProxyPassReverse /berat http://127.0.0.1:3000 > > RewriteEngine On > >
[users@httpd] reverse proxy test ,multiple test sites
Hi, Update on testing apache - reverse proxy/nextjs apps. The idea is to run a local node server (http://127.0.0.1:x) whis is displayed via Apache. I have two/2 examples that appear to work if run separately. running is configured (a2enmod/a2ensite) as well as "systemctl restart apache2". I can view each test site. However, when trying to run both at the same time, ie both configured/enabled and Apache restarted, only one (the 1st) -- not sure how that's determined, is vaild in the browser. The 2nd displays the dir/file index. When on the server, doinhg a curl http://127.0.0.1:3000 curl http://127.0.0.1:3004 The data for both test apps is generated. Looking through the error.log doesn't seem to show any errs. Any thoughts/comments? Thanks testapp1 (this app displays the dir index) cat soufianeelc.conf ServerAdmin f...@yahoo.com ServerName temp223sa ServerAlias temp3sa #test frm web ProxyRequests Off ProxyPreserveHost On ProxyVia Full DocumentRoot /var/www/html/soufianeelc RewriteEngine On #try using the attached dir RewriteRule ^/?$ /soufianeelc/ [R=permanent,L] ProxyPass http://127.0.0.1:3004 ProxyPassReverse /soufianeelc http://127.0.0.1:3004 #ttest substitute below RewriteEngine On #test aug25SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off # AddOutputFilterByType SUBSTITUTE text/html # Substitute "s|/_next/static/|\.\./\.next/static/|" # Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None Options -Indexes AllowOverride All #use for 2.4? Require all granted ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted ###Alias "/sendportal/" "/var/www/html/sendportal/public/" LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined testapp2 (app displays content in browser) ServerAdmin f...@yahoo.com ServerName temp22qq ServerAlias tempqq ProxyRequests Off ProxyPreserveHost On ProxyVia Full DocumentRoot /var/www/html/berat RewriteEngine On RewriteRule ^/?$ /berat/ [R=permanent,L] ProxyPass http://127.0.0.1:3000 ProxyPassReverse /berat http://127.0.0.1:3000 RewriteEngine On SetOutputFilter INFLATE;proxy-html;SUBSTITUTE;DEFLATE; ProxyHTMLInterp On ProxyHTMLExtended Off AddOutputFilterByType SUBSTITUTE text/html Substitute "s|/_next/static/|\.\./\.next/static/|" Substitute "s|/_next/image\?url=\%2Fhero.jpg\&w=1920\&q=75|\.\./public/hero1|i" Header Set Pragma "no-cache" Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" Header Unset ETag FileETag None Options -Indexes AllowOverride All #use for 2.4? Require all granted LogLevel debug ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] redirect -- project in a subdirectory
Hi. Have a test project, and Im getting errs. The foo,conf is vanilla, nothing weird. The test has no .htaccess. I'm getting errs: AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://198.211.116.12/lvprop/ [Mon Feb 10 17:37:56.569385 2025] [core:debug] [pid 1044063] core.c(3968): [client 162.234.196.167:54688] AH00121: r->uri = /lvprop/public/index.php, referer: http://198.211.116.12/lvprop/ . . . As far as I can tell, these kinds of issues are dur to 'redirection' not being handled in either the "foo.conf". or in the .htaccess, and possibly having it in the required subdir as well. This is a test/cheap vm, so I can test away. The app is a test laravel app. Any thoughts/comments are welcome. thanks
[users@httpd] off topic -- looking for places to get laravel information/turor
Hi, I know, off topic, but hope someone might be able to point me in right direction. Looking to "learn" about laravel, and need to find an email list, or tutor that might be looking for a short term Gig. The discord/stackoverflow/fiverr haven't worked yet, so I thought I might ask here as well. Thanks ps. If you want more information, hit me up offline. Also, if you know someone that might be a fit, feel free to pass the msg. thanks again
Re: [users@httpd] off topic -- looking for places to get laravel information/turor
hi frank. I didn't want to get in the weeds. So intentionally kept it short. I'm really looking for a short term tutor if u will. One that knows laravel and the ancillary parts of the stack. This is due to my having a question that then grows! so, a tutor kind of process would be better/faster to get to that 'aha' moment. As I mentioned the usual sites haven't gotten me where I'm trying to get yet! On Wed, Feb 26, 2025, 12:06 PM Frank Gingras wrote: > > > On Wed, Feb 26, 2025 at 11:36 AM bruce wrote: > >> Hi, >> >> I know, off topic, but hope someone might be able to point me in right >> direction. >> >> Looking to "learn" about laravel, and need to find an email list, or >> tutor that might be looking for a short term Gig. >> >> The discord/stackoverflow/fiverr haven't worked yet, so I thought I might >> ask here as well. >> >> Thanks >> >> ps. If you want more information, hit me up offline. Also, if you know >> someone that might be a fit, feel free to pass the msg. >> >> thanks again >> > > There are many "getting started with laravel" hits on google, so perhaps > you should narrow down your questions, first. > > If you need end user support with httpd and laravel (i.e. with custom > mod_rewrite rules, etc), then this list is fine. > > If you run into issues with laravel itself, you should use their primary > support venue(s). >
Re: [users@httpd] off topic -- looking for places to get laravel information/turor
My questions aren't the basic things that most of the help/beginning sites have. I've done, and continue to search. However, you can't really get the "why" or "how" some code was written in the manner it was written. Simply cut/copy/paste is worthless. But thanks On Wed, Feb 26, 2025 at 12:20 PM Frank Gingras wrote: > > > On Wed, Feb 26, 2025 at 12:15 PM bruce wrote: > >> hi frank. I didn't want to get in the weeds. So intentionally kept it >> short. I'm really looking for a short term tutor if u will. One that knows >> laravel and the ancillary parts of the stack. >> >> This is due to my having a question that then grows! so, a tutor kind of >> process would be better/faster to get to that 'aha' moment. >> >> As I mentioned the usual sites haven't gotten me where I'm trying to get >> yet! >> >> On Wed, Feb 26, 2025, 12:06 PM Frank Gingras wrote: >> >>> >>> >>> On Wed, Feb 26, 2025 at 11:36 AM bruce wrote: >>> >>>> Hi, >>>> >>>> I know, off topic, but hope someone might be able to point me in right >>>> direction. >>>> >>>> Looking to "learn" about laravel, and need to find an email list, or >>>> tutor that might be looking for a short term Gig. >>>> >>>> The discord/stackoverflow/fiverr haven't worked yet, so I thought I >>>> might ask here as well. >>>> >>>> Thanks >>>> >>>> ps. If you want more information, hit me up offline. Also, if you know >>>> someone that might be a fit, feel free to pass the msg. >>>> >>>> thanks again >>>> >>> >>> There are many "getting started with laravel" hits on google, so perhaps >>> you should narrow down your questions, first. >>> >>> If you need end user support with httpd and laravel (i.e. with custom >>> mod_rewrite rules, etc), then this list is fine. >>> >>> If you run into issues with laravel itself, you should use their primary >>> support venue(s). >>> >> > Asking the httpd users list to google for a tutorial for you isn't its > primary purpose, IMO. But if someone wants to step up to the plate and > hold your hand, I suppose you could wait in that case. >
[us...@httpd] SSL Certificate
Hello, I am getting a message now titled "SSL Certificate Warning." It says my cert in a certain location needs to be renewed and I can use genkey to do it. When I create a new key, genkey puts it in another location and I continue to get the same message. Can I solve this by simply moving the cert from genkey's default location to where Apache(?) is apparently looking for it? Or, ... what? TIA, Bruce - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: Hide Directory
On Wed, Dec 17, 2008 at 5:22 PM, Edwin wrote: > Hey Guys and Girls > > I'm seriously under educated when it comes to this server and could use your > help with what is probably the easiest thing to do. But I got to ask and > diminish what pride I may have had to begin with. So if you an answer this > question I thank you in advance. > > How do I get the server to hide the actual url path from the viewer. In > other words how do I get it to say > > www.yoursitehere.com > > instead of > > www.yoursitehere.com/directory/here/there/andthatotherplace/index.html > > > > Click here to find the name brand hair care products you're looking for! > Hair Care Products - show relevant results >> Try using mod_rewrite. Documentation is here: http://httpd.apache.org/docs/ - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Re: too long
On Sat, Dec 20, 2008 at 6:09 AM, Dzilberte Bekode wrote: > Hi > thanks a lot man. > Now I know how it works. > But what I don't understant is why is it so slow only when I want submit > form, because page is running fast. > Anyway its working now after I've deleted everything in hosts file. > I realy don't understant. It can be empty? My somewhat-educated guess is that you had an erroneous entry in your hosts file. I believe hosts can be empty if all the hosts you need to find are resolvable on your average domain-name server. Sincerely, Bruce Hyatt - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] actual DBDParams format
On Wed, Dec 24, 2008 at 1:52 PM, ernst schoen-rene wrote: > I'm trying to get mod_dbd and mod_authn_dbd to work. Can someone please > post an example of the correct syntax for the DBDParam statement to use with > MySQL? The mod_dbd page says that it should be in this format: > > DBDParam host=localhost,user=userid,pass=password > > but the mod_authn_dbd uses this format for postgres sql: > > DBDParam "host=localhost user=userid pass=password" > > Most pages I have found via google suggest the latter format as well. Which > is it? > > -Ernst Schoen-René > Have you tried either or both? Bruce
Re: [us...@httpd] rewrite rule ideas needed..
On Fri, Jan 9, 2009 at 6:26 AM, Anders Norrbring wrote: > Hi. > I'm looking at a setup with 6 different ServerAlias in the same single > VirtualHost, and I want a rewrite rule that can rewrite calls missing the > 'www' part to add that. > > Looking at example pages I see that this works for a single host name: > >RewriteEngine On >RewriteCond %{HTTP_HOST} !^www\.domain\.tld [NC] >RewriteCond %{HTTP_HOST} !^$ >RewriteRule ^/(.*) http://www.domain.tld/$1 [L,R] > > But how can I create a setup that will simple add www to any of the valid > ServerAlias names listed in the virtual host? They shall keep the domain > name part as is, and not rewrite to one name only. > > Eg. > server1.com should be www.server1.com > sdom.org should be www.sdom.org > etc... > > Thank you for your ideas! > Anders. Anders, Have you considered doing the opposite, dropping the www subdomain? RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Thanks to http://no-www.org/ Bruce - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] testing
- Original Message - From: Jonathan Bruce To: users@httpd.apache.org Sent: Monday, March 09, 2009 5:11 PM Subject: testing Please ignore.
[EMAIL PROTECTED] mod_rewrite problem with cgi-bin pages`
I was revamping a website to use SSI, and changed all of the default pages to .shtml. I wrote an htaccess file (based upon the Apache 2.0 URL Rewriting Guide example "Backward Compatibility for to migration") to do the following: -check to see if a file was of the format ^(.*default)\.html$ : does the requested file end with "default.html" -if so, check to see if there is a file in the same directory with the same name but a .shtml filetype -if there is, rename the request to .shtml -if not, permanently redirect the link to /404.html This would prevent users from accessing old pages (of which there are about 400), and send them to the new pages if they existed, or redirect them from any discontinued default pages. I can then, at my leisure, delete the old default pages. All other requests (including cgi-bin's) should process normally. However, when the htaccess file is placed in the webroot, any request to a cgi-bin file returns a 403 "forbidden" message. When it's removed, access is allowed. My htaccess file is as follows: -- RewriteEngine on RewriteBase / # 1. parse out basepath & 'default', remember the fact that url had .html in WasHTML RewriteRule ^(.*default)\.html$ $1 [C,E=WasHTML:yes] # if document.shtml exists RewriteCond %{REQUEST_FILENAME}.shtml -f # 2. rewrite to default.shtml , redirect, skip following rule RewriteRule ^(.*)$ $1.shtml [R=permanent,S=1] # else if WasHTML RewriteCond %{ENV:WasHTML}^yes$ # 3.redirect to 404.html RewriteRule ^(.*)$ /404.html [L,R=permanent] ErrorDocument 404 /404.html --- Does anyone have an idea as to why this htaccess file does not allow cgi-bin access? I haven't been able to figure it out. Bruce Hodo - Webmaster, GetAwayNetwork, Inc. ==Providing unique vacation information on the World Wide Web== For Villas, Resorts, Hotels, Air/Hotel Packages, Charter Airfares === Visit us at http://getawaynet.com === - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Webserver config for version 1.3 or 2.0 - emulate "UseCanonicalPhysicalPort On"
Greetings all, I have been trying to find a solution to this issue with my 1.3 webserver. I am using 1.3 because this is part of an Oracle 10g Application server and I don't have a choice to go to 2.2. 2.0 is apparently an option now but the version we currently use is 1.3. What I want to emulate is this 2.2 configuration: Servername xxx.xxx.xxx.xxx Port 80 Listen 81 UseCanonicalName Off UseCanonicalPhysicalPort On Why I hear you ask? I'll explain the configuration for those that are interested: * - 2 servers running Oracle 10g AS with HTTP_Server and WebCache * - Web Cache is listening on Port 80 * - HTTP_Server is listening on port 81 * - OC4J engine on each * - Multiple Deployed Applications, Multiple named DNS entries This doesn't cause an issue except when the web server needs to rewrite a url if I set "UseCanonicalName On" then all URLs revert to "xxx.xxx.xxx.xxx/the rest". If I set "UseCanonicalName Off" then the URL keeps the correct DNS entry but I then get "correct.dns.entry:81/the rest" which defeats the purpose of having the cache. Just to add a little more complexity both these servers are load balanced through a Cisco Engine. This is not the issue as this has been elinated using a round robin dns test. Attempting to use rewrite has not worked. We tried: RewriteCond %{HTTP_HOST} ^correct.dns.entry$ [NC] RewriteCond %{SERVER_PORT} !^80$ [NC] RewriteRule ^(.*)$ http://correct.dns.entry/$1 [L,R] But with all inbound requests being on port 81 this just gets us into a loop which will eventually cause an error. Can anybody think of a way to resolve this or should I just restructure my components so the web server can listen on 80 and my problem then goes away? Thanks in advance, Bruce -- ***** CCC QQQ U U Bruce Young C Q Q U U PeopleSoft Systems Engineer C Q Q U U Information Technology Division C Q Q U U Central Queensland University C Q Q U U E-Mail: [EMAIL PROTECTED] C Q \Q U U Phone: +61 7 4930 6383 CCC QQQ\ UUU Fax: +61 7 4930 9254 * - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Restrict access to folders
Sorry, this is probably a tired newbie question. I've read the httpd.conf file and browsed the archives but haven't found what I'm looking for. If you could just point me in the right direction I'd be really happy. I want to set up something similar to virtual hosts but I only have one domain name. What I have in mind and I believe I've seen before is: www.myDomainName.com/PersonalSite www.myDomainName.com/ProfessionalSite set up so that people can't navigate up to the root, see the other site and navigate to it. I don't want to have to restrict the individual sites to password access. TIA, Bruce ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Restrict access to folders
What would www.myDomainName.com consist of? Bruce --- On Mon 03/19, Zembower, Kevin < [EMAIL PROTECTED] > wrote: Maybe I'm missing something here, but If neither PersonalSite nor ProfessionalSite contain any links to the other, and if they both contain an index.html file to suppress automatic index generation, then users wont be able to browse from one site to the other. Am I missing something? -Kevin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 1:55 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Restrict access to folders Hey Bruce, I'm a newbie and I'm interested in this question, too, so thanks for asking. - Original Message From: Bruce Hyatt <[EMAIL PROTECTED]> To: users@httpd.apache.org Sent: Monday, March 19, 2007 12:42:37 PM Subject: [EMAIL PROTECTED] Restrict access to folders Sorry, this is probably a tired newbie question. I've read the httpd.conf file and browsed the archives but haven't found what I'm looking for. If you could just point me in the right direction I'd be really happy. I want to set up something similar to virtual hosts but I only have one domain name. What I have in mind and I believe I've seen before is: www.myDomainName.com/PersonalSite www.myDomainName.com/ProfessionalSite set up so that people can't navigate up to the root, see the other site and navigate to it. I don't want to have to restrict the individual sites to password access. TIA, Bruce ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Restrict access to folders SOLVED
Israel, that was my question exactly. I should be able to get one of these methods to work. Thank you. Bruce --- On Mon 03/19, Israel Brewster < [EMAIL PROTECTED] > wrote: If I read the question right, what you are missing is what happens if someone currently at www.myDomainName.com/PersonalSite decides to delete the /PersonalSite part of the URL, leaving them at www.myDomainName.com/ At that point (given no index.html file at root level and indexing enabled) they would be able to see both the PersonalSite and the ProfessionalSite directories, and navigate to either one. This also assumes that the physical directory structure of the site is set up with a root level folder containing both the PersonalSite folder and ProfessionalSite folder. As this is a lot of assumptions, I suspect that one or more would not hold up for any given site (for example, I would think most sites would have an index.html at root), and as such, there may not be an issue. However, if I am wrong, and assuming my understanding of the issue is correct, then I see a number of possibilities to restrict this behavior: 1) Place an index.html file at the root level of the server that does not contain links to ProfessionalSite and/or PersonalSite 2) Restrict access to the root level entirely using a Deny from ALL directive, which is then over-ridden in your ProfesionalSite and PersonalSite directories using an Allow from ALL directive (I think that would work) 3) Place your PersonalSite and ProfesionalSite directories outside of the webserver root directory, and use Alias directives to point /PersonalSite and /ProfessionalSite to them. That way even if you can list the root level directory, neither site will show up Those, at least, are what I can think of off the top of my head. There may be other/better options, depending on your site layout, requirements, and other stuff about Apache I don't now. ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] probed, response 200
2 days in a row I get a message in my log that there are "7 possible successful probes." there are then 7 lines like; /msadc/..?..?..?../winnt/system32/cmd.exe?/c+dir HTTP Response 200 The server is running on linux and these all appear to be probes for MS files. It's safe to ignore them, right? Bruce ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Restrict access to folders
So I tried solution 3... > 3) Place your PersonalSite and ProfesionalSite directories outside > of the webserver root directory, and use Alias directives to point > /PersonalSite and /ProfessionalSite to them. That way even if you > can list the root level directory, neither site will show up ...by doing this: - httpd.conf already had Alias /icons/ "/var/www/icons/" so I added Alias /site1/ "var/www/html1/site1" - I created /var/www/html1/site1/index.html when I navigate to mydomain.name/site1 or /site1/ I get 404. I also tried aliasing /site1/ to /site1/site1.html with no luck. Do I have to do something with the DirectoryIndex line? Thanks,Bruce ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Still Need Help w. PHP And Apache
I'm no expert but what jumps out at me is that you say you're trying to integrate php 5.2.1 but your web server is trying to load a php 6.0.0 dll. Bruce > Mr. Steve Burrus wrote: hi I still need help/assistance w. trying to integrate php with the apache server. the version of php in question is 5.2.1 and the version of apache is 2.2.4. I got this integrated some time ago but cannot now. me again. the server error msg. which I get when I try to start up apache is : >>"httpd.exe: Syntax error on line 74 of C:/Program Files/Apache Software Foundatio n/Apache2.2/conf/httpd.conf: Cannot load C:/php-6.0.0/apache2_2.dll into server: The specified module could not be found."<< now what could be causing this??? ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] httpd.conf question - virtual server- firewall port forwarding
David, I'm far from an expert on Apache web server but I think you can't do what you're trying to do. If your server is on a private network behind a router (which it must be) the rest of the world will not see the 192.168.x.x IP #s, only the IP # of the router. I think you will have to use name-based virtual hosts. Bruce --- On Wed 03/28, Vizion < [EMAIL PROTECTED] > wrote: From: Vizion [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Wed, 28 Mar 2007 10:06:53 -0700 Subject: [EMAIL PROTECTED] httpd.conf question - virtual server- firewall port forwarding I am setting up an apache2.2 server on freebsd with a number of virtual hosts. The server is behind a firewall which has the IP address to which each virtual host is pointed by DNS with port 80 forwarding to the server. The server is on a private network (192.168.0.0) behind the firewall. I have never used this arrangement before and cannot get the virtual servers functioning properly. httpd.conf includes the lines: Include etc/apache22/Includes/*.conf the virtual servers have entries in the form of: DocumentRoot /absolute/path/to/root Servername www.mydomain.tld AcceptPathInfo order allow, deny allow from all Can anyone point me to a resource that can maybe help me identify what I am doing wrong. I have not had to use this arangement before.. so I am doubtless making a silly mistake somewhere. \ Thanks in advance david ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] ldap-attribute wildcard not working?
Hello, We are moving from Apache 1.3 (Solaris) to Apache 2.2.3 (Redhat). We are trying to leverage the new functionality in the mod_authnz_ldap module to authenticate/authorize users visting our support site. I have the authentication piece working and am now trying to authorize access to certain directories using ldap-attribute. We have an attribute in our LDAP directory called "groupmembership". Due to some issues in our back-end Notes/Domino database, values for groupmembership are like "Employee 1", "Employee 2", "Employee 3", etc.but each of these is essentially the same, i.e a member of the "Employee" group. So, if I have content that I want to secure to members of the "Employee" group, I was hoping to use a wildcard like: require ldap-attribute groupmembership=Employee* But this is not working. In fact, there's not even an error in the log file. Here's the conf file for my test site: #Options Indexes #AllowOverride None #Order allow,deny #Allow from all AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative on AuthName "Please enter your webaccount username and password:" AuthLDAPURL ldap://domino-core.qad.com:389/?cn require ldap-attribute groupmembership=Employee* #require valid-user AuthLDAPBindDN "cn=Domino Ldap,o=QADWEB" AuthLDAPBindPassword [EMAIL PROTECTED] If I change ldap-attribute to the following: require ldap-attribute groupmembership="Employee 6" it works for any account which specifically has "Employee 6" as a value for the "groupmembership" field. But using the wildcard "Employee*" or simply Employee* (no quotes), does not work. Can someone set me straight? What am I doing wrong? Is there a limitation of the wildcard character that I'm not aware of? Thanks, Bruce
[EMAIL PROTECTED] Apache 2.0-Mongrel Proxy problems
I've been trying to resolve this for over 2 weeks, but no one seems to be able to tell me what's wrong. Maybe you folks can help me. (this is a copy of a post I made on a Usenet alt.apache.configuration, with no responses) I'm running Ubuntu 6.06LTS, Apache 2.0.55, and WebMin 1.36. I've been trying to set up static content with server-side includes to be delivered by Apache, but reverse proxying for Rails application reqeusts on a local (soon to be remote) Mongrel server at port 8000. I also wanted to have any request that is received without a specific file to be redirected to index.shtml. I've been able to get everything running EXCEPT the reverse proxy with the following config: ServerName myapp.com ServerAlias www.myapp.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/rails/myapp/public ErrorLog /var/www/myapp/log/apache2.log RewriteMap railservers rnd:/var/www/rails/map.txt Options FollowSymLinks +Includes +ExecCGI AllowOverride None Order allow,deny Allow from all RewriteEngine On RewriteRule ^$ index.shtml [QSA] RewriteRule "^/(images|stylesheets|javascripts|pictures|graphics)/? (.*)" "$0" [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:8000/$1 [P,L] RewriteLog "/var/www/myapp/log/rewrite.log" RewriteLogLevel 0 #placed in global parameter file # Avoid open server to proxying ProxyRequests Off # Pass other requests to mongrel instance #ProxyPass / http://localhost:8000/ # Enable reverse proxying ProxyPassReverse / http://localhost:8000/ # Let apache pass the original host not the ProxyPass one ProxyPreserveHost On AddType text/html .shtml AddOutputFilter INCLUDES .shtml LogLevel debug CustomLog /var/log/apache2/access.log "combined" ServerSignature On I have a RewriteMap defined to allow me to set up a cluster of Mongrels once I get one working, since 2.0 doesn't have the balancer module. Webmin puts the proxy config in a separate file called proxy.conf which contains: #turning ProxyRequests on and allowing proxying from all may allow #spammers to use your proxy to send email. ProxyRequests Off Order deny,allow #Deny from all Allow from all # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia Off # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) CacheRoot "/var/cache/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 # Again, you probably should change this. #NoCache a_domain.com another_domain.edu joes.garage_sale.com I've tried several things: -put the rewriteengine on directive outside of the directory block: I was unable to access any page that wasn't specifically requested. -defined "ProxyPass / http://localhost:8000/": was unable to access anything (no permission to access) even though permissions are set to 775 -turned on rewritelog. here are the results for a www.myapp.com/state/list request: (3) add path info postfix: /var/www/rails/myapp/public/state -> /var/ www/rails/myapp/public/state/list (3) strip per-dir prefix: /var/www/rails/myapp/public/state/list -> state/list (3) applying pattern '^$' to uri 'state/list' (3) add path info postfix: /var/www/rails/myapp/public/state -> /var/ www/rails/myapp/public/state/list (3) strip per-dir prefix: /var/www/rails/myapp/public/state/list -> state/list (3) applying pattern '^/(images|stylesheets|javascripts|pictures| graphics)/?(.*)' to uri 'state/list' (3) add path info postfix: /var/www/rails/myapp/public/state -> /var/ www/rails/myapp/public/state/list (3) strip per-dir prefix: /var/www/rails/myapp/public/state/list -> state/list (3) applying pattern '^/(.*)$' to uri 'state/list' (1) pass through /var/www/rails/myapp/public/state It seems that the rewrite is working up to the rewritecond statement. It parses the statement pattern correctly, but the file state/list does not exist, so the condition "!-f" should pass the request to Mongrel, but it seems to pass it to Apache, who doesn't find the file "state/list" and gives a 404 error, unless I'm reading the logs wrong! I wish I had detailed instructions on how to read a rewritelog and what the codes mean. I haven't been able to find them anywhere. The proxy modules are loaded, so there must be something else I'm not doing. I've been working on this for 2 weeks.
[EMAIL PROTECTED] Configure Apache to propagate servlet down condition back to load balancer
I have the following configuration: BIG-IP -> Apache HTTPD -> Servlet Container Load-> Apache HTTPD -> Servlet Container Balancer -> Apache HTTPD -> Servlet Container The Apache HTTPD instance serves up static content and translates HTTPS requests into HTTP. Dynamic content is proxied to a Servlet Container running an application. My problem is that when one of the servlet containers seizes up, the BIG-IP box doesn't take the Apache instance out of circulation. Instead, users are continually connected to non-responsive servlets. Is there any way to configure Apache so that it is identifies itself as unavailable to the BIG-IP box if it finds that all proxy requests are failing? Thanks for any help. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Configure Apache to propagate servlet down condition back to load balancer
Thanks, Serge. Sorry for being off-topic, but I didn't know whether the solution lay in configuring Apache or not. It seemed like Apache was the intermediary between the two systems, and so seemed like the logical place to detect the failure of one system and pass it on to the other. I am glad that a better solution exists. Thanks for your help. Serge Dubrouski wrote: I think it's quite possible and fairly easy. BigIP allows you to create a custom HTTP/S monitors for a particular URL. So create a monitor that will get not just "/" but some URL that point to your Servlet Container and then set up a "Receive String" to expect something like "200 OK". So in case if your Servelet Container goes down Apache will answer with 503 error code, BigIP wont see 200 and will mark that particular member as down. Sorry, this item is little bit an off topic for this forum because it mostly relates to BigIP, not to Apache. On Thu, May 1, 2008 at 1:13 PM, Bruce Atherton <[EMAIL PROTECTED]> wrote: I have the following configuration: BIG-IP -> Apache HTTPD -> Servlet Container Load-> Apache HTTPD -> Servlet Container Balancer -> Apache HTTPD -> Servlet Container The Apache HTTPD instance serves up static content and translates HTTPS requests into HTTP. Dynamic content is proxied to a Servlet Container running an application. My problem is that when one of the servlet containers seizes up, the BIG-IP box doesn't take the Apache instance out of circulation. Instead, users are continually connected to non-responsive servlets. Is there any way to configure Apache so that it is identifies itself as unavailable to the BIG-IP box if it finds that all proxy requests are failing? Thanks for any help. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[users@httpd] autoindex: showing directory it shouldn't
Hi, Summary of my problem: mod_autoindex is showing directories that a logged in user doesn't have access to when using Require group. When using Require user, it's properly not shown. ShowForbidden is never turned on. Details: Oracle Linux 6u4 (RHEL6u4) httpd-2.2.15-26.0.1.el6.x86_64 mod_authz_ldap-0.26-16.el6.x86_64 * mkdir -p /tmp/test/{1,2,3} * cat "Require group blahblah "> /tmp/test/1/.htaccess * set perms to 775 * Configure a virtual host with /tmp/test as the DocumentRoot and setup ldap authorization and authentication via mod_authz_ldap. Test with a user not in group 'blahblah'. Basic auth. * Turn on Options Index (ShowForbidden is NOT on.) Browse to the doc root, and I can see directories 1, 2, and 3. (From my understanding, I shouldn't see 1.) Trying to browse into directory 1 and I'm properly forbidden. * Change .htaccess file to 'Require user notmyuser' Browse to the doc root. Now I can only see directories 2 and 3. (Proper behavior.) Any help would be appreciated, this is driving me crazy! Thanks! -- Bruce Z. Lysik
Re: [users@httpd] autoindex: showing directory it shouldn't
Hopefully not too bad form to reply to my own thread, but I have more information. If I use normal file system based groups, it works as expected, and won't show my directory 1. So now it appears to be either an issue with mod_authz_ldap or it's apache making a decision not to check a sub-directory .htaccess if using a different authorization method. -- Bruce Z. Lysik > > From: Bruce Lysik >To: "users@httpd.apache.org" >Sent: Thursday, August 1, 2013 7:18 AM >Subject: [users@httpd] autoindex: showing directory it shouldn't > > > >Hi, > > >Summary of my problem: mod_autoindex is showing directories that a logged in >user doesn't have access to when using Require group. When using Require >user, it's properly not shown. ShowForbidden is never turned on. > > >Details: > > >Oracle Linux 6u4 (RHEL6u4) >httpd-2.2.15-26.0.1.el6.x86_64 >mod_authz_ldap-0.26-16.el6.x86_64 > > >* mkdir -p /tmp/test/{1,2,3} >* cat "Require group blahblah "> /tmp/test/1/.htaccess >* set perms to 775 >* Configure a virtual host with /tmp/test as the DocumentRoot and setup ldap >authorization and authentication via mod_authz_ldap. Test with a user not in >group 'blahblah'. Basic auth. >* Turn on Options Index (ShowForbidden is NOT on.) > > >Browse to the doc root, and I can see directories 1, 2, and 3. (From my >understanding, I shouldn't see 1.) Trying to browse into directory 1 and I'm >properly forbidden. > >* Change .htaccess file to 'Require user notmyuser' > > >Browse to the doc root. Now I can only see directories 2 and 3. (Proper >behavior.) > > >Any help would be appreciated, this is driving me crazy! Thanks! > > >-- >Bruce Z. Lysik > >
[EMAIL PROTECTED] Frontpage 301 Redirect
Hi All I know this has been asked often, but I cannot seen to find a reponse from any of the previous posts. I have a client who insists on using FrontPage 2003 and I've setup WebDAV through Apache for him. It worked just find with 1.3, but since the migration to the 2.0 server we cannot seem to change to subdirectories, BUT, with Windows Network Places we can browse and write and so on happily. I have tried creating a redirect-carefully entry for "Mozilla/4.0 (compatible; MS FrontPage 6.0)", but that made little difference. I upgraded apache to latest. I tried all combinations of trailing slashes on Directory parameters. If I manually specify the subfolder (without the trailing slash) on the FP remote URL, it loads the subfolder (calling it with a trailing slash), but will not load any further subfolders: 192.168.0.1 - user [16/Jun/2006:02:07:10 +0200] "PROPFIND /folder/ HTTP/1.1" 207 438 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)" 192.168.0.1 - user [16/Jun/2006:02:07:12 +0200] "PROPFIND /folder/ HTTP/1.1" 207 6098 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)" 192.168.0.1 - user [16/Jun/2006:02:07:19 +0200] "PROPFIND /folder/subfolder HTTP/1.1" 301 311 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)" Network Places browses through quite happily though (note the lack of trailing slashes in the calls): 192.168.0.1 - user [16/Jun/2006:02:08:28 +0200] "PROPFIND / HTTP/1.1" 207 820 "-" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.0.1 - user [16/Jun/2006:02:08:30 +0200] "PROPFIND / HTTP/1.1" 207 72248 "-" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.0.1 - user [16/Jun/2006:02:09:18 +0200] "PROPFIND /folder HTTP/1.1" 207 831 "-" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.0.1 - user [16/Jun/2006:02:09:21 +0200] "PROPFIND /folder HTTP/1.1" 207 8940 "-" "Microsoft Data Access Internet Publishing Provider DAV" 192.168.0.1 - user [16/Jun/2006:02:09:56 +0200] "PROPFIND /folder/subfolder HTTP/1.1" 207 837 "-" "Microsoft Data Access Internet Publishing Provider DAV" The first line below is FP, and the second Network Places. Note how for the same location, they get different responses: 192.168.0.1 - user [16/Jun/2006:01:53:01 +0200] "PROPFIND /folder/subfolder HTTP/1.1" 301 311 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)" 192.168.0.1 - user [16/Jun/2006:01:53:45 +0200] "PROPFIND /folder/subfolder HTTP/1.1" 207 1753 "-" "Microsoft Data Access Internet Publishing Provider DAV" Please help! Server version: Apache/2.0.55 Server built: Jun 16 2006 01:42:10 Server's Module Magic Number: 20020903:11 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/sbin/suexec2" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf" Ciao -- Warwick Chapman General Manager Thusa Business Support cc Cellular: +27 83 7797 094 Telephone: +27 31 277 1250 Facsimile: +27 31 277 1269 Website: http://www.thusa.co.za -- There are 10 types of people in this world. Those who understand binary, and those who don't. begin:vcard fn:Warwick Bruce Chapman n:Chapman;Warwick Bruce org:Thusa Business Support cc;General Manager adr:Glenwood;;185 Bulwer Road;Durban;KZN;4001;RSA email;internet:[EMAIL PROTECTED] title:Member tel;work:+27 31 277 1250 tel;fax:+27 31 277 1269 tel;cell:+27 83 7797 094 x-mozilla-html:FALSE url:http://www.thusa.co.za version:2.1 end:vcard - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Frontpage 301 Redirect
Joshua Slive wrote: On 6/17/06, Warwick Bruce Chapman <[EMAIL PROTECTED]> wrote: I have tried creating a redirect-carefully entry for "Mozilla/4.0 (compatible; MS FrontPage 6.0)", but that made little difference. I upgraded apache to latest. I tried all combinations of trailing slashes on Directory parameters. I bet that you haven't properly set redirect-carefully for the requests. Try setting it unconditionally: SetEnv redirect-carefully OMG - I think that may just have worked! Are there any considerations to doing this unconditionally? Thank you! -- Warwick Chapman General Manager Thusa Business Support cc Cellular: +27 83 7797 094 Telephone: +27 31 277 1250 Facsimile: +27 31 277 1269 Website: http://www.thusa.co.za -- There are 10 types of people in this world. Those who understand binary, and those who don't. begin:vcard fn:Warwick Bruce Chapman n:Chapman;Warwick Bruce org:Thusa Business Support cc;General Manager adr:Glenwood;;185 Bulwer Road;Durban;KZN;4001;RSA email;internet:[EMAIL PROTECTED] title:Member tel;work:+27 31 277 1250 tel;fax:+27 31 277 1269 tel;cell:+27 83 7797 094 x-mozilla-html:FALSE url:http://www.thusa.co.za version:2.1 end:vcard - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock
I am running Apache 2.0.51. Recently, I added a Location directive, and bounced Apache, but received the following errors in the error_log: [Wed Jun 07 18:03:54 2006] [warn] pid file /global/camin-http/apache/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Jun 07 18:23:40 2006] [warn] (22)Invalid argument: Failed to acquire global mutex lock [Wed Jun 07 18:23:40 2006] [warn] (22)Invalid argument: Failed to release global mutex lock The unclean shutdown message was probably caused by a process monitor that attempted to restart Apache after I stopped it. In researching this, I've found plenty of references to the mutex locking error, but nothing including the 'Invalid argument'. Has anyone run across this? Thanks for your help, Bruce [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock
Thanks for replying, Axel. I'm familiar with the SSLMutex issue, but I doubt that it is the problem in this case. The system failed over to another node that uses the same configuration files (on a shared drive), and it runs fine on the other node. It has to be something that is particular to the orignal node. I think it has to do with stopping and starting Apache while the process monitor was also attempting to start it. I don't know how the lock is implemented, but possibly it is trying to access the lock with an old reference that no longer exists? Bruce -Original Message- From: Axel-Stéphane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 8:14 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock Are you using mod_ssl ? IN that case what is the value of the SSLMutex property ? -ascs -Original Message- From: Steely, Bruce (Mission Systems) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:07 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock I am running Apache 2.0.51. Recently, I added a Location directive, and bounced Apache, but received the following errors in the error_log: [Wed Jun 07 18:03:54 2006] [warn] pid file /global/camin-http/apache/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Jun 07 18:23:40 2006] [warn] (22)Invalid argument: Failed to acquire global mutex lock [Wed Jun 07 18:23:40 2006] [warn] (22)Invalid argument: Failed to release global mutex lock The unclean shutdown message was probably caused by a process monitor that attempted to restart Apache after I stopped it. In researching this, I've found plenty of references to the mutex locking error, but nothing including the 'Invalid argument'. Has anyone run across this? Thanks for your help, Bruce [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock
I'll try it. Bruce -Original Message- From: Axel-Stéphane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 10:19 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock I have had this kind of problems before, and I seem to remember I even posted a bug about it. For your information the error message you get does come from mod_ssl: bash-2.03$ find . -type f -name \*.c -exec grep -l 'Failed to acquire global mutex lock' {} \; ./modules/ssl/ssl_engine_mutex.c bash-2.03$ This problem appeared when I migrated from Apache 2.0.49 to 2.0.54. The default mutex for my platform (Solaris) was changed somewhere thereabout. I ended up explicitly setting AcceptMutex and SSLMutex to pthread (the previous default) and never had this problem again. I believe using a file, fcntl or flock mutex on a shared drive is not recommended -ascs -Original Message- From: Steely, Bruce (Mission Systems) [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 4:09 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Invalid argument: Failed to acquire global mutex lock Thanks for replying, Axel. I'm familiar with the SSLMutex issue, but I doubt that it is the problem in this case. The system failed over to another node that uses the same configuration files (on a shared drive), and it runs fine on the other node. It has to be something that is particular to the orignal node. I think it has to do with stopping and starting Apache while the process monitor was also attempting to start it. I don't know how the lock is implemented, but possibly it is trying to access the lock with an old reference that no longer exists? Bruce - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]