[us...@httpd] What is the default location?

2010-11-26 Thread Mahmood Naderan
Hi, I am new to apache so my question may be too simple. I have installed apache2 and when I enter the ip address (http://A.B.C.D/) in the web browser I can successfully see the message It works! fine. I also have installed Munin and set the htmldir variable to

Re: [us...@httpd] What is the default location?

2010-11-26 Thread Mahmood Naderan
is A.B.C.D, what is the URL for accessing the charts? Thanks, // Naderan *Mahmood; From: Igor Galić i.ga...@brainsware.org To: users@httpd.apache.org Sent: Fri, November 26, 2010 7:28:36 PM Subject: Re: [us...@httpd] What is the default location? - Mahmood

Re: [users@httpd] discovered file(s) matching request

2018-06-07 Thread Mahmood Naderan
>What files exist beginning with index and what do you expect to be served? root@ce:/var/www/html/shb# find . -name index* ./index.php ./ow_updates/classes/index.php ./ow_updates/index.php ./ow_libraries/vendor/smarty/smarty/demo/index.php ./ow_plugins/forum/controllers/index.php

Re: [users@httpd] discovered file(s) matching request

2018-06-07 Thread Mahmood Naderan
>Weird, do you actually use multiviews or is it just interfering with Well, no... >other rewrites intended to do something with /sbh/index ? > >You'd need to configure it to understand "php" could be a negotiated >type (since it really isn't) I removed the multiviews and now the page is

[users@httpd] Web page works with "php -S" but not with apache

2018-05-29 Thread Mahmood Naderan
Consider the following apach2 config file on an Ubuntu 18.04 as below root@web1:/var/www/html# cat /etc/apache2/sites-available/000-default.conf ServerAdmin webmaster@localhost DocumentRoot /var/www/html/ Options Indexes FollowSymLinks MultiViews AllowOverride All Order

Re: [users@httpd] Web page works with "php -S" but not with apache

2018-06-03 Thread Mahmood Naderan
r file is found The question is why I can not access that from a remote machine. Regards, Mahmood On Wednesday, May 30, 2018, 2:14:23 AM GMT+4:30, John Hicks wrote: On 05/29/2018 04:05 PM, Mahmood Naderan wrote: Consider the following apach2 config file on an Ubuntu 18.04

Re: [users@httpd] apache2 can not find the file

2018-06-03 Thread Mahmood Naderan
the web installer (complain about /install not found) while I can see that with php command? That mean the files are there but apache can not find them. Regards, Mahmood On Sunday, June 3, 2018, 10:37:03 PM GMT+4:30, Mahmood Naderan wrote: Hi,About my problem with apache which I

Re: [users@httpd] apache2 can not find the file

2018-06-03 Thread Mahmood Naderan
Thanks for the reply. According to the following output, mod_rewrite is installed root@webshub:/var/www/html# apachectl -M 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

Re: [users@httpd] Web page works with "php -S" but not with apache

2018-06-03 Thread Mahmood Naderan
:42:39 + > From: Mahmood Naderan >  > root@webshub:/var/www/html# php -S localhost:8080 > PHP 7.2.5-0ubuntu0.18.04.1 Development Server started at Tue May 29 22:56:54 2018 > > Listening on http://localhost:8080 > Document root is /var/www/html > > [Tue May 29 23:02

[users@httpd] apache2 can not find the file

2018-06-03 Thread Mahmood Naderan
Hi,About my problem with apache which I described in another thread, I will know explain what I did from scratch. See the system specs below root@webshub:/var/www/html# ls backedupindex.html  install_info.txt  ow_install  ow_smarty  ow_userfiles    shub captcha.php ow_core   

[users@httpd] discovered file(s) matching request

2018-06-07 Thread Mahmood Naderan
Hi,With the following apache2 configuration:    Options Indexes FollowSymLinks MultiViews    AllowOverride All    Order allow,deny    Allow from all    Require all granted I can access the web page and I am able to login to the portal. All pages, including Dashboard,

Re: RE: [users@httpd] https not working

2018-06-23 Thread Mahmood Naderan
>Try "openssl s_client -debug -connect host:port" to see if your machine can >contact the server at all. Should I run that on my laptop (the remote machine) or the server? >You should try to telnet to port 443 from a) the localhost The output seems to be fine mahmood@ce:~$ telnet localhost 443

RE: [users@httpd] https not working

2018-06-21 Thread Mahmood Naderan
; Mahmood Naderan Subject: Re: [users@httpd] https not working Hi, Have you enabled ssl and rewrite modules? I would verify also that there is no firewall blocking 443. Alex On Wed, Jun 20, 2018, 18:24 Mahmood Naderan wrote: Hi, My web site works on http without any problem. The location

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Mahmood Naderan
>DirectoryIndex contains a list of files to try, not a full path.  >My guess is >that it's supposed to be >DirectoryIndex index.cgi instead of the path. Well I change that to "DirectoryIndex index.cgi", howeverby visiting the url from the web browser, I see the content of index.cgi as a plain

Re: RE: [users@httpd] Problem with CGI script

2018-01-06 Thread Mahmood Naderan
OK. The correct thing is to add AddHandler cgi-script .cgi Options FollowSymLinks Indexes ExecCGI DirectoryIndex /rocks/7.0/install/rolls/index.cgi Allow from all Thanks for your help and ideas Eric. Regards, Mahmood

Re: RE: [users@httpd] Problem with CGI script

2017-12-31 Thread Mahmood Naderan
Dear Eric, Can you explain a bit more on what should I do with the cgi probblem? Regards, Mahmood On Saturday, December 30, 2017, 9:12:00 PM GMT+3:30, mahmood n wrote: >You need to scope the SetHandler/AddHandler to just the things that >are actually CGI. 

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>If your app uses *.cgi for CGIs, useAddHandler cgi-script .cgi >instead of SetHandler.   Hi, I did that and now the error has beendisappeared. I tried to define alias and wrote“AddHandler cgi-script .py” which seems to be incorrect. Many thanks for yourhelp. Anyway…     The cgi in the

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>Maybe I was unclear. Put it back along with AddHandler cgi-script .cgi >if you want the subdirs to look like the root. No it is not OK to have something like this ServerName rocks-7-0.my.org DocumentRoot /var/www/html/rocks/7.0     Options FollowSymLinks Indexes ExecCGI    

Re: RE: [users@httpd] Problem with CGI script

2018-01-01 Thread Mahmood Naderan
>I think someone previously told you to undo: >        DirectoryIndex /install/rolls/index.cgi >But this is what would cause the root index.cgi to be used by the >subdirectoryes. Yes I did that and it only works for the main folder where index.cgi exists.I am thinking about *recursive cgi*

[users@httpd] https not working

2018-06-20 Thread Mahmood Naderan
Hi,My web site works on http without any problem. The location is /var/www/html/shob/ and I want to define an HTTPS virtualhost. So, I COPIED the content relative to my website from /etc/apach2/sites-available/000-default.conf  to /etc/apache2/sites-available/default-ssl.conf and the content

Re: [users@httpd] Problem setting up ssl

2018-08-13 Thread Mahmood Naderan
>what's in the logs of your httpd server? Any errors reported during  >httpd startup and/or your accesses? When I restart apache2 service, I see these lines in the syslog Aug 13 22:19:36 webshub systemd[1]: Stopping The Apache HTTP Server... Aug 13 22:19:36 webshub apachectl[20543]: AH00558:

Re: [users@httpd] Problem setting up ssl

2018-08-12 Thread Mahmood Naderan
>In ports.conf have a 443 port listen configured? You enable mod_ssl with >a2enmod mod_ssl? root@webshub:~# netstat -tulpn | grep 443tcp6   0  0 :::443  :::*    LISTEN  14709/apache2 I enabled mod_ssl root@webshub:~# a2enmod ssl Considering

[users@httpd] Problem setting up ssl

2018-08-12 Thread Mahmood Naderan
Hi, I am totally confused with the configuration of ssl via apache2. The server's page is reachable by an IP address. So, when I enter http://w.x.y.z I am able to see the web page and the content of /etc/apache2/sites-available/000-default.conf is     DocumentRoot /var/www/html      

Re: [users@httpd] Problem setting up ssl

2018-08-13 Thread Mahmood Naderan
>Now, when I open https://w.x.y.z in the browser, I get>>>An error occurred >during a connection to w.x.y.z. SSL received a record that exceeded the >maximum permissible >length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG Excuse me... Isn't there any idea? I searched the web about the

Re: [users@httpd] Problem setting up ssl

2018-08-20 Thread Mahmood Naderan
>Is default-ssl site "enabled" via the debian/ubuntu tools e.g. a2ensite? # a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb

Re: [users@httpd] Problem setting up ssl

2018-08-21 Thread Mahmood Naderan
>This is because SSL-certs require domain names and don't work properly >with 'bare IP addresses'. You'll never get that fixed unless you start >using a domainname and a correct certificate (LetsEncrypt for example). Thank you very much for the help. Regards, Mahmood

Re: [users@httpd] Problem setting up ssl

2018-08-20 Thread Mahmood Naderan
>Is mod_ssl actually loaded/enabled? >Try removing the lines and check your >httpd config syntax (apache2ctl -S) root@webshub:~# grep IfModule /etc/apache2/sites-available/default-ssl.conf # # root@webshub:~# apachectl -S AH00558: apache2: Could not reliably determine the server's fully

Re: [users@httpd] Problem setting up ssl

2018-08-20 Thread Mahmood Naderan
Hi again >From another computer I tried to access the IP address via wget command. See >this output [mahmood@rocks7 ~]$ wget http://w.x.y.z --2018-08-20 10:30:38--  http://w.x.y.z/ Connecting to w.x.y.z:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified

Re: [users@httpd] Problem setting up ssl

2018-08-20 Thread Mahmood Naderan
As I posted earlier, SSLEngine is  on $ cat /etc/apache2/sites-available/default-ssl.conf         ServerAdmin webmaster@localhost     DocumentRoot /var/www/html                   Options FollowSymLinks             AllowOverride All       

Re: [users@httpd] Problem setting up ssl

2018-08-18 Thread Mahmood Naderan
>OTOH, seems to be some  >special setup, defaulting to an address from the loopback network  >(127.0.1.1). I also noted that, but don't know what to do. >As you seem to receive some resources via HTTP, the request should get  >logged somewhere. I use "tail -f /var/log/apache2/access.log"

[users@httpd] Basic question about https

2018-08-21 Thread Mahmood Naderan
Hi, It is possible to have http://sub.somewhere/portal1 and https://sub.somewhere/portal2 For that, I have to define a document root in 000-default.conf and an entry for portal1 and then define an entry for portal2 in default-ssl.conf. Is that a valid configuration? Or I have to define all

[users@httpd] ssl.conf and httpd.conf in Centos

2018-09-06 Thread Mahmood Naderan
Hi,In Centos with the name of httpd, I see two IncludeOptional statements in /var/etc/httpd/conf/httpd.conf # grep -r IncludeOptional /etc/httpd/ /etc/httpd/conf/httpd.conf:IncludeOptional conf.d/*.conf /etc/httpd/conf/httpd.conf:IncludeOptional sites-enabled/*.conf I don't see such statements

[users@httpd] HTTPS and .htaccess

2018-09-05 Thread Mahmood Naderan
Hi I have configured a Centos server with httpd for ssl support. Prior to that when I entered http://w.x.y.z I was able to see in the install page. After configuring ssl, I removed all files from /var/www/html and was able to see the test page when entering https://somewhere.com Now

RE: [users@httpd] https not working

2018-06-22 Thread Mahmood Naderan
No Idea? I have stuck at that…. Regards, Mahmood From: Mahmood Naderan Sent: Thursday, June 21, 2018 12:59 PM To: Alex K; users@httpd.apache.org Subject: RE: [users@httpd] https not working Have you enabled ssl and rewrite modules? I would verify also that there is no firewall blocking 443

[users@httpd] Viewing the content of a file without extension in the URL

2018-12-21 Thread Mahmood Naderan
Hi Using Apache and Centos 7, I have put two specific files in `/var/www/html` as below     [root@sn acme-challenge]# pwd     /var/www/html/.well-known/acme-challenge     [root@sn acme-challenge]# ls -l     total 8     -rw-r--r--. 1 root root 88 Dec 21 12:19 8KyeoB4HPzOPR6Et9uBPWoldME6LGIBV3ps  

[users@httpd] About ServerLimit

2020-07-08 Thread Mahmood Naderan
Hello When I set ServerLimit to 500, does that include all TCP connection states? I mean are all these counted by ServerLimit? Or just ESTABLISHED is counted? tcp6   0  0 192.168.168.91:443  X:18212 FIN_WAIT2   - tcp6   0  0 192.168.168.91:443  X:14756 TIME_WAIT  

[users@httpd] Tuning the number of connections and processes

2020-07-08 Thread Mahmood Naderan
Hello When I count the number of apache2 processes, I get about 151, but when I check the number of connections, I get about 208 connections. I want to know if there is any relation between these two. Also, isn't 151 processes low? We have 32GB of RAM with 10 cores. We want to have a support

Re: [users@httpd] About ServerLimit

2020-07-08 Thread Mahmood Naderan
>But it's more straightforward to use /server-status if you care about >things like ServerLimit then trying to reverse engineer from netstat. OK I can see that report. It is saying that 109 requests currently being processed., 18 idle workers. Is that 109 the same as the number of apache2

Re: [users@httpd] About ServerLimit

2020-07-08 Thread Mahmood Naderan
One more thing. With this output WKWWKWRKKRKWWKWWRWWRRKWWKRWKKR.RWR._W_R.RKRKK.RCWWKW_R.W..KKWWK. WCWKKK_KWWWRR.R..WWKWWRK.WWWRRW.WWW.WRK_WR.R..KWWKKRW.KCWK.W ..R_..WW

[users@httpd] Reducing 503 errors

2020-07-10 Thread Mahmood Naderan
Hello With the following MPM settings     ServerLimit   500     StartServers   5     MinSpareServers   5     MaxSpareServers  10     MaxRequestWorkers 500     MaxConnectionsPerChild   0 I would like to know how can I reduce

[users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
Hi The output of "apache2 -V" and "apache2 -l" commands show that MPM prefork is not available in my apache web server. # apache2 -V [Fri Jul 10 15:13:36.293467 2020] [core:warn] [pid 25107] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
>Did you see this syntax error? OK I commented that line and left that to the apache's default. Now I can see MPM status # apache2 -V [Fri Jul 10 21:15:32.121146 2020] [core:warn] [pid 49516] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Fri Jul 10 21:15:32.121269 2020]

Re: [users@httpd] Checking if MPM is working

2020-07-10 Thread Mahmood Naderan
The server is Ubuntu 18.04 and I installed that via apt. The apachectl command says it is using MPM. # apachectl status   Apache Server Status for localhost (via ::1)    Server Version: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1    Server MPM: prefork    Server Built:

[users@httpd] Counting connections against the limit

2020-07-17 Thread Mahmood Naderan
Hello I want to know what is the relation between ServerLimit and MaxRequestWorkers? I have read about them on the apache website, but still I don't know are these two equal or one should be greater than the other? If yes, by how much approximately and why? Also, I want to count the

Re: [users@httpd] Counting connections against the limit

2020-07-17 Thread Mahmood Naderan
>Don't, use /server-status. Thanks I also use that. But that page has a lot of information. Still I don't know which number in that page is the sign of reaching ServerLimit. Do you mean that I always have to look at MaxRequestWorkers which is the number of apache processes? Regards, Mahmood