Apache Web Server





The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am using the below RewriteRule which does what I require. However it effects any other created folders within the "materials/guide/" folder. Can I change it so it only applies to the "materials/guide/details/ folder?

RewriteRule ^materials/guide/([A-Za-z0-9-]+)/?$ /materials/guide/details/index.php?link=$1 [NC]

Open in new window

Or exclude other sub folders in "materials/guide/" if easier?
Connect further...control easier
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

While installing tomcat how to know which http free port is free?8080 is always busy occupied by glassfish etc.

any tool or software etc which tells all free and occupied ports on my windows laptop to decide which port to allocate to tomcat?

what is ajp/1.3 conector port 8009 which shows while installing?
please advise
I am running apache 2.2.32 (openssl version 1.0.2k) version with php 5.2.12 (openssl version 0.9.8t ) setup on my server. I have extension=php_openssl.dll uncomment in php.ini ( on correct location of php.ini). I was not able to load the openssl module in phpinfo.

I tried to copy the following two libraries from \php\ext to \windows\system32 folder as well.
1. libeay32.dll
2. ssleay32.dll

Still I could see the openssl reference corresponding to apache where ever apache version is specified on loading but php openssl module is not showing up in phpinfo().

I tried to install latest openssl from openssl website and copy the relevant library folders in both apache and windows\system32 folder to resolve it but the module is not loading. I want to know if i can check if there is any compatibility issues with openssl or I am missing any steps in between.

Can anyone let me help me?

I have a network like this: Database - Web - Redis - Internet.
The Redis is on CentOS 7, i use nginx and php5. The redis and database are install in 1 VPS.
I would like to know does redis connect to the database or not, could i know it's caching or not from INFO command?
And further, if i want it to write back to database after a unit of time, what should i do, and how can i config it?
Thank you very much for reading this.
I am currently trying to develop a database for simultaneous remote user access (not a LAN network). From what i've researched, im going to do the LAMP stack (Ubuntu 16.04 server, Apache, MySQL and PHP). However, would this force the 10 end users to enter data through php and then I would have to connect the PHP forms to MySQL database? Can end users manage to see the tables this way or edit changes to database once they submit the forms?  Thanks for your help!
We are still using Tomcat 6.0 and plan to move to latest version by next year. Problem with current version is to set the access deny to our web-application.

I tried adding valve with webapps/META-INF/context.xml file as below but nothing works. Can you please provide a fix.

<Context antiJARLocking="true" path="/">
<Valve className="org.apache.catalina.valves.RemoteIpValve" />
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="{IP_address}" />


<Context antiResourceLocking="false" privileged="true">
    <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1,8\.8\.4\..*"/>

Open in new window

Do you guys have any another solution as I want to restrict outside users from accessing Manager view and it will be accessible only from localhost?

Best Regards
I have to connect to stored procedure and get the datatable by using tomcat .
Any suggestions appreciated.
I have a Debian server with about 15 websites running fine. I added a new website and that is too running fine. However, I also want to add a ssl connection for this website, but whatever I try Apache refuses to show the website. It just shows the default debian page. I allready tried replacing the default ssl file with the file for the website, but then I get a ssl protocol error. Apachectl shows no errors, so do the logs. If I make an error in the config file apachectl gives an error, so the conf file is read by Apache. I've been figuring this out for hours, but I am completely stumped now.
   We are facing 502 proxy error: Error reading status line from remote server <dns>:<port>   when we try to  reverse proxy to Apache server from our apache server. OS is Redhat linux. A simple redirect works but not the proxy. Also we see the 200 ok only through browsers and not curl or wget commands.  We tried setting  SetEnv proxy nokeepalive 1   but still no luck. Any suggestions for the same.
Hey Guys,

I'm using WIN 2008 server and IIS6 along with Tomcat6. I'm getting timeout for a document while timeout limit is set to 200 sec at both end.
I believe below 120422 is the time it took before time out and error shown as 502.3

PDF&APPLICATION_NAME=FORM=KEY=VALUE=27086&X-ARR-CACHE-HIT=0&X-ARR-LOG-ID=********54225b6eecd0 443 - 10.*.*.* Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:52.0)+Gecko/20100101+Firefox/52.0 502 3 12002 120422
Have you ever faced such scenario?

Free Tool: Path Explorer
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I have run phpinfo(); and it tells me there are three modules -

v7.1, v5.6 and v5.3 in c:/program Files and c:/Program Files x86 but the only one I can find is v7.1 which I'm running.

I had installed 5.3 and 5.6 earlier and thought I had removed them but they are still listed somewhere.

Will this matter to PHP (which it doesn't at this point) or where can I find them to be removed ?

Hi experts,

I'm setting up an Apache server to host new site of my company and I have a problem with few browsers.
When a JS file is modified The change takes effect only when we empty browser cache.

We would like the change to take effect when the user closes and reopens his browser.
Is there any settings I could add to my Apache conf to solve this?

Thank you,

Hello Experts,

What's wrong with this code: ??  ( in httpd.conf )

RewriteEngine on
RewriteCond %{REMOTE_ADDR} !="[1-50]\.[0-255]\.[0-255]\.[0-255]"
RewriteRule /scripts/(.*) http://localhost:81/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:81/game/$1 [P,L]

RewriteCond %{REMOTE_ADDR} !="[51-99]\.[0-255]\.[0-255]\.[0-255]"
RewriteRule /scripts/(.*) http://localhost:82/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:82/game/$1 [P,L]

RewriteCond %{REMOTE_ADDR} !="[100-150]\.[0-255]\.[0-255]\.[0-255]"
RewriteRule /scripts/(.*) http://localhost:83/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:83/game/$1 [P,L]

RewriteCond %{REMOTE_ADDR} !="[151-200]\.[0-255]\.[0-255]\.[0-255]"
RewriteRule /scripts/(.*) http://localhost:84/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:84/game/$1 [P,L]

RewriteCond %{REMOTE_ADDR} !="[201-255]\.[0-255]\.[0-255]\.[0-255]"
RewriteRule /scripts/(.*) http://localhost:85/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:85/game/$1 [P,L]

RewriteCond %{REMOTE_ADDR} ="192\.168\.1\.[1-255]"
RewriteRule /scripts/(.*) http://localhost:86/scripts/$1 [P,L]
RewriteRule /game/(.*) http://localhost:86/game/$1 [P,L]

Open in new window


Looks like only one instance of my webservice is doing all the heavy work, while the others don't.
The webservices are pre-set to listen to ports 81-88, but looks like the port 81 guy doing all the work.

webservices and their RAM usage...

What I am trying to do is spread the workload to the different web-services listening to the ports, correctly so a better balance-loading is achieved.

I run apache 2.2.16 (win 32) with php 5.3.3.

Any ideas?
Hi Guys,

I am having an issue with my server where my server is running really slow, i can see the load avg is pretty high, there is only one site running on it


I have attached the error log and the only issue , is where it says empty input file for http://iradio.ie/newPlayer (which does actually exist)

i have changed DNS over the last 24 hours
I need htaccess code to make permalinks and redirect them on a single file
like i need example.com/a
these urls to show my index file
I see a lot of this, but nothing seems to be helping. I have a server configured with Apache + nginx running together. I have many WordPress sites and Vanilla 2.1.10 running just fine with pretty URLs via htaccess rewriting.

I'm trying to updated to Vanilla 2.3, but when I upload all the new files I end up with 404s. The README mentions that "Additional setup is required on nginx and other platforms" but it doesn't go into detail.

In the forum and other places, I see people talking about how to fix this, and this link seems to provide the simplest method, which is basically to add this to the nginx vhost:

 location /forum
 try_files $uri $uri/ @forum;
 location @forum
 rewrite ^/forum(.+)$ /forum/index.php?p=$1 last;

Open in new window

Our forum is indeed located at /forum on our site, and we tried this code but it's not fixing the problem.  Any information on how I can get this fixed would be greatly appreciated. Thanks!
Here is what I have but... it's not masking the URL.  

RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.domainA\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.subdomain\.domainB\.net$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/subdomain\.domainB\.net" [R=301,L]
C:\windows\system32>c:\Apache24\bin\httpd -S
httpd: Syntax error on line 532 of C:/Apache24/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
When I try to restore a db backup (40Mb zipped), It takes around 5 mins to upload and  then around 2 mins later I got this error

Internal Server Error 500 The cPanel Server operation timed out at cpsrvd.pl line 541.

I changed

cPanel PHP max execution time=9000

but it did not help. Any ideas?
Thank you.
Create the perfect environment for any meeting
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

hi all,
if I add mod  pagespeed,  mod expire option is not setting up on network tab.

if I remove pagespeed I can see expire for each extensions are showing properly.

how to fix this issue?
I was asked to redirect a request coming on port 80 (Apache) to port 8080.

Before I changed anything, localhost:80 would show "It works" and locahost:8080 the Apache welcome page.

I did the following changes :

- uncommented LoadModule proxy_module modules/mod_proxy.so & LoadModule proxy_http_module modules/mod_proxy_http.so from the httpd.conf file
- uncommented Include conf/extra/httpd-vhosts.conf, always in httpd.conf

In httpd-vhosts.conf, I added :

<VirtualHost *:80>
    ServerName mydomain
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass /  http://mydomain:8080/webApp
    ProxyPassReverse / http://mydomain:8080/webApp

Open in new window

But when I try http://localhost, I do arrive on my webApp, but all css styling, images, ... are missing :

I have an idea why it is not working : when I inspect my page, and look at the header i see that the link to the favicon for example is http://mydomain/webApp/images/favicon.ico, but if I copy paste that link, I will of course not find the favicon because it is not on Apache, but Tomcat (if that makes any sense). If I add the port to the URL, then it works : http://mydomain:8080/webApp/images/favicon.ico

Has this anything to do with the problem stated here : https://serverfault.com/questions/561892/how-to-handle-relative-urls-correctly-with-a-reverse-proxy ?

This is because the tomcat response headers will contain the proxy headers (i.e. the Location header is http://mydomain/WebApp rather than http://mydomain:8080/WebApp) because ProxyPreserveHost is switched On

So I switched it to Off :

Open in new window

I am attempting to load new SSL certs into my Tomcat Server. I was successful in creating a new KeyStore and CSR. before I import the certs I was able to browse to my site internally via the correct port. However, after successfully importing the certs in the Keystore I am unable to browse to the site. I am new to Tomcat and would appreciate any assistance.

Hi expert,
 I have 2 critical requirement if user hits anything  after domain needs to go to below URL.

www.rwar.com/alpha needs to go as


2.if user types or click the below URL the page needs to go to same page

I have a server which runs on PostgreSQL, Django on apache and gets hang up every couple of days. I understood that it would require PostgreSQL optimization. But there are so many parameters not sure where to start. As of now, the server hanging up. Please let me know what kind of information you need so that I can provide you and you can better assist me.

Also I have iptables firewall setup not sure where exactly is the problem. But the website hangs up every 1 one day and when I restart the apache it works for one day.
I have setup an Apache web-server to request client certificates and I need to revoke some of the client certificates. Removing them from the client machine is not an option so I need to revoke them from the server so it does not see them as valid.

I'm trying to use the command :

openssl ca -revoke /etc/ssl/certs/client123.pem

where client123.pem was a certificate validated by the web-server (where the ca was configured).


Apache Web Server





The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.