Go Premium for a chance to win a PS4. Enter to Win

x

Apache Web Server

19K

Solutions

14K

Contributors

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 have below line in haproxy.cfg

server batch lb1.com:8080 weight 100 maxconn 150 check inter 1000 rise 10 fall 3 disabled

Open in new window


I would like to understand the role of 'disabled' here
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE
LVL 5
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

I have below log from HA Proxy
Nov 17 09:16:41 lb1 haproxy[13135]: 10.2.148.1:40862 [17/Nov/2017:09:16:38.094] lb batch1 0/0/0/-1/3000 504 194 - - sH-- 2509/2509/2503/101/0 0/0 "GET /my_url HTTP/1.1"

Open in new window


Here I would to understand what is -1 in  "0/0/0/-1/3000"
and
what is these numbers separated with "/". I see two instances of it in the log above
0
I have below log from HA Proxy

Nov 17 09:15:41 lb1_server haproxy[14520]: 10.22.148.53:2102 [17/Nov/2017:09:15:40.191] lb in/batch31 0/0/0/1472/1473 503 5569 - - ---- 2106/2106/2098/79/0 0/0 "GET /my_url HTTP/1.1"

Open in new window


Here I would like to understand what is

 0/0/0/1472/1473 

Open in new window


and also using above log can I see how many requested were 'queued' as backend was not available ?
0
Parse error: syntax error, unexpected T_CONST in C:\wamp\www\codeigniter\system\core\CodeIgniter.php on line 58
0
we patched SUSE Linux 11 SP4.  when we start apache it didn't work so we had to roll back apache2-mod_kj.

I like to upgrade this package as per security issue. How can I fix the issue?

apache2-mod_jk-1.2.26-1.30.110
0
Hi All,

I have a web server that needs to host 2 SSL certs that will use 1 public IP address

I have added the certs to the server and added a new entry to the ssl.conf file

<VirtualHost *:443>
 #ServerName www.XXXXXXXX.com
 #DocumentRoot /var/www/site2
 SSLEngine on
 SSLCertificateFile /etc/httpd/conf/ssl.crt/XXXXXXXXX.crt
 SSLCertificateKeyFile /etc/httpd/conf/ssl.key/XXXXXXXXkey
 SSLCACertificateFile /etc/httpd/conf/ssl.crt/XXXXXXXX.crt
</VirtualHost>  

When I restart httpd.conf I get the following message.

Starting httpd: [Wed Nov 15 09:25:05 2017] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Obviously, it is looking at both certs and as both use Port 443 it goes with the first cert it sees and not the second. What am I missing?

CentOS 6.9
Apache with mod_ssl installed
0
We're getting the following error when the HTTP GET request is large:
mod_jk.log:[Wed Oct 18 11:37:20.232263 2017][12082:139812138850048] ajp_marshal_into_msgb::jk_ajp_common.c (517): failed appending the query string of length 7295

I've found several references to this error and I've tried the following, but it did not work:
1. Added worker.template.max_packet_size=65536 to this file: workers.properties
2. Added packetSize to file /usr/apache-tomcat/conf/server.xml:
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" address="127.0.0.1" protocol="org.apache.coyote.ajp.AjpNioProtocol"
                        socket.directBuffer="true"
                        URIEncoding="UTF-8" redirectPort="8443" packetSize="65536" connectionTimeout="120000"  />
3. Added LimitRequestLine 65536 LimitRequestBody 0 LimitRequestFieldSize 65536 LimitRequestFields 10000 (to /nbsnas/http/conf/httpd.conf file)
Restarted Apache for each of the above and also when all of them are set to the values above.

I'm still getting the same error.
Any ideas/recommendations is greatly appreciated.
thanks!
0
Hi, just wondering if someone is able to help me re-write a URL in the following pattern...

https://url.domain.com/url/ --> https://www.domain.com/url/ 

So if you load the first part it shows the content where the second part is. So it's basically creating a sub-domain that points to a folder, but still shows the folder as part of the URL. (the /url/ at the end)

Thanking you in advance!!
Cheers
0
The application is ehour Time Attendance Management Software

After following the instructions from there website im getting the error below:
HTTP ERROR
I have attached the logs for more reference.

I appreciate if someone with expertise can guide through troubleshooting the error above.

Thanks
catalina.2017-11-13.log
tomcat8-stderr.2017-11-13.log
commons-daemon.2017-11-13.log
localhost_access_log.2017-11-13.txt
manager.2017-11-13.log
0
Hello. I'd like my Centos web server to NOT allow directory listing when you're browsing folders like this:
http://<myserversip>/folder/

I have tried with .htaccess in the main html folder but it doesn't work.

My apache is configured like this: each domain has a configuration file in /etc/httpd/sites-available (and a link in sites-enabled).

So I guess I should add a configuration file for when you're browsing the server by IP. I have no idea how, though.

It works if I set
Options -Indexes

Open in new window

in httpd.conf, but this would block all indexing. I was wondering if this can be an issue when set globally.

Can someone help me? Thanks.
0
Microsoft Certification Exam 74-409
LVL 1
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

I'm using Magento and when I change some server code, re-run the same request and the old PHP file is getting used. I asked my ISP and they swear blind they're not doing any opcode caching but the evidence of my eyes is different - is there a way of forcing Apache to use an updated PHP file?
https://blog.amasty.com/magento-cache-explained-a-guide-for-store-owners/#PHP_opcode_cache
(I'm on a cheap package with the ISP so I haven't got much control )
0
Does anyone have any experience with Apache mod_evasive? I've just installed that to try and mitigate DoS attacks, but it's not working as expected. My config is:
LoadModule evasive20_module lib64/httpd/modules/mod_evasive20.so

<IfModule mod_evasive20.c>
    DOSHashTableSize    3097
    DOSPageCount        2
    DOSSiteCount        100
    DOSPageInterval     1
    DOSSiteInterval     1
    DOSBlockingPeriod   10
  DOSEmailNotify        sysadmin@mydom.com
</IfModule>

Open in new window

As you can see, I've set the SiteCount to 100. I've had it at the default of 50, and tried 10 as well. No matter what I set it to it seems to generate the Blacklist message after some very few accesses. For example, it just blacklisted an IP that shows in the access_log only 9 times and over a 4 second period (not the supposed 1 second as defined by DOSSiteInterval).

As I said, it seems to blacklist with about this number of accesses regardless of what I set the DOSSiteCount to.
0
I have a new Ubuntu web server running with Apache.
I have setup 1 website using the default conf file.

I want to make sure that if anyone visits the domian using httpS that it redirects to http.

I don't have any SSL certificates and am not planning on using any.

can someone advise how to do this?

thanks

Steve
0
Hi experts 

As per your old post ,We installed mod-security on apache 2.2.

but facing some issue on xss cross script.

for example:
www.abc.com/aaa/home.html/?×=@scripts 

the above url is getting blocked by apache and redirecting to domian url.

www.abc.com/aaa/home.html/×=@scripts 

this url where query string is not their is not detecting by apache and going to 404 error page.

where to add the rule to block xss cross script issue.
0
Dear Team,

Tomcat is throwing below when trying to start.
Could not load the Tomcat server configuration at \Servers\Tomcat v8.0 Server at localhost-config. The Servers project is closed.
0
Am looking for 2FA solution meeting these requirements:

1. 2 FA but with one-time authentication per device.

2. On the same device, prompted only once to present both sets of credentials.

3. That device is no longer prompted for all time.

Is there an Apache solution for this? I have looked at a few things like google auth but not sure it would work well with these requirements.
0
Wordpress whenever I try to approve multiple comments it gives me err connection reset. Started happening after wordpress upgrade.
0
Hi

I am using .htaccess to display my web address as so

https://mywebsite.com/fr/paul

part 1: the domain name
part 2: the language which will default in the language of the users computer additionally default to fr if the user is in the province of quebec.
part 3: alphanumeric id which is automatically redirected to users.php (I use php here to detect the last part of the URI in this case paul to get the records in my db with id=paul

if the following address is entered: https://mywebsite.com/fr/
it will view any page on the website in french eg: Home, contact, about, etc etc

if this page is entered https://mywebsite.com/fr/paul
it would basically doing: https://mywebsite.com/fr/users.php?id=paul

except I want to hide ?id=paul and posting the variable is not really the route I want to go because I want people to be able to book mark https://mywebsite.com/fr/paul

my current htaccess file looks like this but not quite working the way I need it too
RewriteEngine on

# Force www:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Force SSL:
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NE]

# Languages
RewriteRule ^en/(.*)$ $1 [L]
RewriteRule ^fr/(.*)$ $1 [L]
RewriteRule ^sp/(.*)$ $1 [L]
RewriteRule ^it/(.*)$ $1 [NC,L]

RewriteRule	^home/?$	index.php    [NC,L]
RewriteRule	^contact/?$	contact.php    

Open in new window

0
I have a Tomcat 8.5 service on a Windows server and I have noticed that Tomcat service does not restart on server reboot so I have to go in and restart it manually. it is very strange as the Startup Type is set to Automatic.

Can anyone please help me diagnose and fix the issue?
0
What does it mean to be "Always On"?
LVL 5
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

I have been using wamp server with windows 10 for months without a problem, I don't have skype and IIS is disabled.  It's been working fine until today, now the icon is yellow and it is apache that is not working.  I tried to start it manually and checked again that port 80 is free.  Any ideas what could be causing this?
0
Dear Experts,

I have a client who rebuilt his website, and asked us to do some URL redirects for him. but a certain link I get stumped with, I tried encoding, decoding and everything I could think of to make that work, but still it refuses to work!
Site is hosted on cPanel with Apache WebServer, all redirects except for this one works fine.

Original link:
https://site.tld/category/מדפסות/מדפסות-משולבות/מדפסות-משולבות-לייזר-שח%d7

(Cleints says that the %d7 must be part of the matched URL for SEO reasons)

should redirect to
https://site.tld/category-office-products/מדפסות-לייזר/

Any help would be greatly appriciated.
0
Hi,

I've been trying to set up a subdomain for development  e.g dev.domain.com

I've created a new dns record in Linode Dns manager for dev.domain.com and also copied the domain.com.conf to dev.domain.com.conf and renamed the Server name and Server Alias to www.dev.domain.com and dev.domain.com in that file.  I also updated the document root to the correct folder on the server /home/public/dev.domain.com/public   then I ran a2ensite dev.domain.com.conf and reloaded apache2

But every time I try to access dev.domain.com I'm geting another site showing up which is the default site on the server.

How can I find the issue here and fix it?
0
Suppose i added url like http://123.12.1.45/cuz in reverse proxy to access it from outside of my company.and suppose my domain name is aa.bbbb.com .By https://aa.bbbb.com/cuz i can open it from outside.but while opening from out side it is coming as https://aa.bbbb.com/xyz/cuz.please help me out from this issue.


Thanks in advance.
0
Hi

I want to have a url that looks like this: http://www.domain.com/dashboard/edit/employee_name

the form to edit is at this location: http://www.domain.com/dashboard/form.php

can someone help me with the correct syntax ?

Thank you
0
0
down vote
favorite
I am trying to create clean urls by adjusting the .htaccess file

Firstly i want to string out the script type (.php) and then rewrite some of the urls. I have created the following .htaccess file

RewriteEngine on

ErrorDocument  400 /errors.php

RewriteCond %{REQUEST_FILENAME}.php -f   --> Ref A

RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule ^logged_in/team/(\d+)*$ /logged_in/team/?team=$1 --> Ref B

Open in new window

I have successfully removed the .php from the urls but cannot get the team rewrite to work.

Essentially, i have a url of

website.com/logged_in/team/?team=id

Open in new window

i want it to become

website.com/logged_in/team/id/  --> i want it to be able to have query stings after this as (ref B)

Open in new window

Example of a potential page
website.com/logged_in/team/id/tasks?task=taskId 

Open in new window

With regards to reference A. I have been looking at the following tutorial (https://code.tutsplus.com/tutorials/using-htaccess-files-for-pretty-urls--net-6049)

and noticed they included
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

Open in new window

I dont see a problem with the first but would the second counteract ref A? Should these be included as well?

Thanks
0

Apache Web Server

19K

Solutions

14K

Contributors

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.