Apache :: Reducing Time To First Byte (HTTPS / SSL)
May 1, 2013
I'm trying to improve the performance of my website and noticed that https pages take really long to load:
[URL] ....
[URL] ....
It appears this problem is caused by using https, because when I open my site without https it loads pretty quickly.
[URL] ....
From what I can see it appears that the main problem is the time to first byte, so my question is how can I reduce this?
My virtualhost for SSL is set like this:
Quote:
<VirtualHost 46.249.47.12:443>
DocumentRoot "C:Program Files (x86)Apache Software FoundationApache24htdocssite 2"
ServerName www.elitegameservers.net
ServerAlias elitegameservers.net
ErrorLog "logs/xgclan.com-error.log"
[Code] ....
I have replaced the real paths with "PATH" for security reasons. How to reduce the time to first byte in general. I tried setting up memcache to accomplish this but I didn't notice any changes...
This is my mem cache config:
Quote:
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 10000000
MCacheMaxObjectCount 100000
MCacheMinObjectSize 1
MCacheMaxObjectSize 262144
</IfModule>
Update: Just ran the openssl speed command [URL] ....
View 11 Replies
ADVERTISEMENT
May 24, 2007
My load average seems a bit high considering how few processes are running:
[url]
Is there anything I can do to reduce the load generated by Apache?
You can see the Apache2 server status info here:
[url]
It's serving 20-25 requests per second, which are mostly these tiny requests to tracker.php which issues a database query and returns an image. The relevant httpd.conf settings:
Code:
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 512
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
This is a dual Opteron 2212 server (4 cores total) with 4GB RAM.
View 9 Replies
View Related
Jul 6, 2014
I have set up an Apache web server that has ssl enabled. If I go to https://myserver.com I get the 'it works!' page and the certificate is valid and trusted. If I go to https://myserver.com/myapp that also works (it's an Oracle weblogic deployed java app that I'm fronting with Apache).
I would like to configure Apache so that when a user goes to simply https://myserver.com it automatically directs them to https://myserver.com/myapp rather than showing the 'It works!' page. I have read some documentation and experimented with setting a redirect via the https.conf file and even the ssl.conf file but nothing seems to work. I either get a 404 or simply the 'It works! page.
View 1 Replies
View Related
Jan 2, 2013
I'm going to use my apache server to host files(it works with a php script so we can't use FTP for now...) so I was wondering if I could limit this virtual host's bandwidth per second so the websites on the other virtual hosts still load properly. Any module for apache on windows which can do this?
View 2 Replies
View Related
Mar 1, 2015
I've just switched my Apache and PHP config over to linux(ubuntu 14.10).
Apache 2.4.12 is using the mpm-event worker and PHP 5.6 is running in FastCGI/fpm mode.
I'm running MariaDB 10.0.17
I'd like to reduce the time to first byte even more, its currently 80 ms for static files and 110ms for PHP generated pages.
1. 80 ms seems like a lot, since the ping to the server is <15ms
How can I reduce this? Are there some tweaks for the Linux networking stack or Apache that I can apply?
I'm also using SSL, I remember it could be tweaked to improve its performance but I don't remember how..
I currently enabled the following in my main apache config:
Code:
ServerSignature Off
ServerTokens Prod
TraceEnable off
EnableMMAP on
EnableSendfile on
UseCanonicalName On
2. Is there a mod_spdy for Apache 2.4? what about http 2.0?
3. Can I tell PHP to make use of unix sockets to connect to the database server? (I heard unix sockets is faster)
4. I've installed memcached for PHP, can I also use this for Apache?
View 5 Replies
View Related
Feb 6, 2013
The server is going down from time to time, every 12 days or so the site hosted there is no longer accesible, everything starts with the site slowing don and down and then is not longer reachable, what we do is to request a power cycle, and with this we start all over again till next power cycle, so on so on, of course, here are my server details and more info on this:
- MySQL - 5.1.41-3ubuntu12.10
- Apache - 2.2.14-5ubuntu8.4
- PHP - 5.3.2-1ubuntu4.9
- operating system: Ubuntu Server 10.04 LTS
After some time emailing the support guys to barely check about what's going on, we received an email with a few things:
1.- found a few errors that likely would cause issues with Apache. The first error is:
[Mon Feb 04 05:03:10 2013] [error] mod_fcgid: fcgid process manager died, restarting the server and the next error is:
[Mon Feb 04 14:32:34 2013] [error] server reached MaxClients setting, consider raising the MaxClients setting ...
Both these errors seem to indicate that you have a process that is running out of control on your server. We were unable to determine what script on your site is running caused your connections to be maxed out however it does appear that before these errors were generated there was a WordPress plugin referenced in your access logs...
2.- Additionally during our review we did find that your error log for mercadodedinerousa.com is 45 GB's which is excessively large and can cause problems when Apache is trying to write a such a large file.
3.- The majority of the errors being logged are:
[Wed Feb 06 12:12:31 2013] [error] [client 200.76.90.5] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/mercadodedinerousa.com/httpdocs/index.pl, referer: [URL]
View 6 Replies
View Related
Jul 20, 2008
I recently took over as webmaster for my employer. We want to move to a CMS (Wordpress) for our site. We've had a shared account with Tera-Byte for years. I go to install Wordpress and it says it needs MYSQL version 4 of greater.
Tech support is willing to move me on to a newer server that has MYSQL 4, but doing so would mean copying everything over and reconfiguring anything that needs to be reconfigured (i.e., all our staff's email accounts) from scratch. Is this standard practice?
View 14 Replies
View Related
May 4, 2015
I keep hearing that redirecting from http to https is not very secure [non-SSL to SSL]. Among other reasons, one reason is that the browser may continue to think it is communicating with non secure server and may not encrypt the data. Is it true? I hope not, I am using the following -
<VirtualHost 12.34.567.89:80>
ServerName www.mysite1234.com:80
Redirect / https://www.mysite1234.com/
</VirtualHost>
View 1 Replies
View Related
Jan 17, 2014
I have a problem with slow Apache 2.4.4. It's only related with https which is in general 5 time slower than the same site via http. I see this difference on the monitoring software which is measuring response time to http and https every 5 seconds. In some cases i got even timeouts in the browser on https while in the same time site is opening over http - slowly but opens always.
Apache runs on Win2k8 Enterprise, Version 2.4.4 x64 - VC10. Server is connected with quite poor internet connection as it's located in Africa. Despite of connection quality http is working properly all the time.
View 19 Replies
View Related
Apr 11, 2014
i have setup everything before using ssl without issue for using https url.Now I'm having issues for Apache 2.4.9.
In url https://tomysite.com i get
Not Found
View 7 Replies
View Related
Nov 1, 2014
I've just joined the group and new to Apache/php. I have just assembled a website in Joomla/vertumart and called petslovezone.com.au. I want to redirect all the request such as
1. http://xyz.com to https://xyz.com
2. http://www.xyz.com to https://xyz.com
3. xyz.com. to https://xyz.com
4. www.xyz.com to https://xyz.com
now know I have to change .htaccess "RewriteEngine On" section. What would be the best code to do all the above.
Apache Version2.4.10
PHP Version5.4.32
View 2 Replies
View Related
Mar 3, 2015
I'm using a turnkey image for smallmachineforum system, installed on amazon aws instance.
In the default configuration I can't use the http version of the site, only the https.
It does not seem to be a network issue, a telnet on port 80 opens.
The server is apache version 2.2.22, on a Debian 3.2.57-3+deb7u2 x86_64
View 2 Replies
View Related
Jan 21, 2015
Say I have two domains: example.com and example.net.
Upon a http request to example.com, I wish to redirect to https://example.com.
Upon either a http or https request to example.net, I wish to redirect to https://example.com.
Note that for both cases, subdomains should also be redirected, and the change should be considered permanent.
I've seem multiple ways to do so. What is the best way? How do I deal with subdomains when there is a new domain such as example.net to example.com?
I've taken a stab. How to fill in the gaps?
View 1 Replies
View Related
Aug 17, 2013
I am trying to find out if redirecting an https URL to an http URL will still provide the security of the original https? Should the page information for the redirected http page show it as being unencrypted or shouldn't it have the same encryption as the original https?
View 3 Replies
View Related
Oct 7, 2014
I´ve read that a whole https website might be better for SEO than just a mixed version. So I want to change the whole website to https.
We are using Plesk 12 on Win 2008 R2.
One Website is using DotNetNuke 7.3.2.
How can I automatically set the whole website to https?
What happens to the users that just type domainname.com without http or https.?
What is the right search engine friendly technique to permanently redirect to the https version even when the user is not using the application protocol prefix http/https?
Where can I do the setup in Plesk 12 fro Windows?
Are their any other drawbacks that I have to think over before I do the changes?
View 5 Replies
View Related
May 26, 2013
How to be able to fix my problem that is related to the https using apache2 (enabling https in apache2) at opensuse:
By the way, my opensuse version is:
openSUSE 12.1 (x86_64)
VERSION = 12.1
CODENAME = Asparagus
1) At the /etc/apache2/vhosts.d/vhost-ssl.conf, and if I do not have a name (as the server will be accessed using its IP address), can I place in the ServerName 192.168.0.5? Do I have to place it 192.168.0.5:443 or it is enough to be 192.168.0.5?
2) Is there a relation between the SSLCipherSuite values and the used method to generate the certificate?
3) I am afraid from the way that I am using to generate the certificate and the ssl module that is coming with apache2 at my machine which has opensuse. How can I select the right way?
Actually I used following commands to generate the .crt, .key and the .csr:
openssl genrsa -des3
openssl req -new -x509
openssl x509 -req
And that was from this link: [URL] .... But did not work with me !
Meanwhile I am placing:
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
4) Do I have to configure the virualhost? Do I have to create files under the directory /etc/apache2/vhosts.d? Because I will have one application to be browsed .. nothing more.
View 2 Replies
View Related
Dec 30, 2008
How do I prevent apache from binding to port 443? HTTPS support is not needed so only want apache to bind to port 80
My /etc/apache/httpd.conf has port 80, but no mention of 443 anywhere, yet netstat reveals it binding to port 443
I have apache 1.3.29.0.2-5 on Debian Linux (knoppix)
View 10 Replies
View Related
Dec 4, 2013
I have a custom software that runs it's own webserver. I then found instructions on how to use apache2 as a proxy that will enable ssl for that site. (long story short, my custom software doesn't support ssl and it's not an option)
View 2 Replies
View Related
Jun 7, 2015
I recently got a SSL-certificate for my website. Now the old links to my website (using only http) doesnt work, the visitors just getting redirected to my index page. How can I change my .htaccess so both http and https works, but keep https as the preferred? Or even better, redirect old http links to https? I'm not using www.
My current .htaccess:
RewriteCond %{HTTPS} off
RewriteRule (.*) https ://%{HTTP_HOST}%{REQUEST_URI}
View 2 Replies
View Related
Dec 18, 2013
i want to redirect main domain http //, www request to https://
i added this code
RewriteCond %{HTTPS} off# First rewrite to HTTPS:# Don't put www. here. If it is already there it will be included, if not# the subsequent rule will catch it.RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]# Now, rewrite any request to the wrong domain to use www.RewriteCond %{HTTP_HOST} !^www.RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
View 2 Replies
View Related
Jun 11, 2015
In my apache conf file I redirect http to https requests like this:
Code:
# Redirect all requests to https
<VirtualHost *:80>
ServerName www.mypage.de
Redirect permanent / https://www.mypage.de/
</VirtualHost>
This worked just fine until yesterday, when I have updated to Apache 2.4 and disabled SSL 3 by doing this:
Code:
# Disable SSL 3 due to the POODLE vulnerability
SSLProtocol all -SSLv2 -SSLv3
Now, if I call any http URL, the server does not respond. If I explicitly call a https URL it works.
View 3 Replies
View Related
Mar 13, 2015
Apache2.4.6
apr-1.4.8
openssl-1.0.1c
arm-linux-gcc4.4.4
Recently I cross compiled Apache2.4.6 to run in my ARM cpu, and I found that http can work well if only it's own port such as 80 is listened, but if add one more port to be listened in conf file, http fails. That means http is good, but after https is on, http stop working and https is good. At the same time, I built the same apache2.4.6 in X86 gcc4.6.1, http and https can both work well. In addition, I also tried apache1.3.33 in the same ARM system, http and https can work well too. It seems like that in apache2.4.6, http can't work well if there is one more port listened in ARM system. Actually http port is listening and is established when using netstat to monitor it.
root@freescale /usr/local/apache/bin$ netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 :::www :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
tcp 0 0 (null):www (null):3705 ESTABLISHED
tcp 0 0 (null):443 (null):3720 ESTABLISHED
View 1 Replies
View Related
Mar 10, 2015
I am using an apache reverse proxy :
httpd -version
Server version: Apache/2.2.15 (Unix)
Server built: Oct 16 2014 14:48:21
In front of an internet liferay server, I m forcing https connexion and my reverse proxy is the SSL endpoint, and it is working fine.
But inside the liferay page there are "http" link to other webserver, and browser are refusing to load them because they are http and not https.
Is there a way in the reverse proxy to rewrite "on the fly" "http" link to "https" so that everything would be load on the browser ?
I was thinking mod_proxy_html but it doesn't seams to do what I want.
View 2 Replies
View Related
Aug 26, 2014
I want to rewrite my all site urls from http to https and also preserve URL canonicalation like all url redirected to http://www. How to achieve this goal?
View 1 Replies
View Related
Jun 19, 2013
I'm currently struggling with an issue on our Apache 2.2.24 home-rolled installation on an OEL 6.2 x64 linux server that front-ends for a Glassfish cluster via proxypass.The httpd.conf manages 4 virtual hosts with each virtual host entry rewriting to HTTPS.
Anyone trying to access the HTTP address redirects to HTTPS just fine.The issue is that anyone using the HTTPS address gets redirected to the Document Root defined in Apache instead of being proxypassed to Glassfish.
I had set up a dummy DocumentRoot with a simple index.html meta redirect and what happens is that anyone directly accessing HTTPS will hit the index.html file which redirects to the the https site. At this point it simply loops to infinity.
View 1 Replies
View Related
Feb 20, 2008
I have a HUGE blog with over 15,000 posts that constantly runs the mysql database like NONE other.
I am just wondering, is there a way to reduce load? I am top 100,000 in Alexa and I get over 2,000 uniques / day. What can I do about this?
View 7 Replies
View Related
Feb 16, 2008
What are the best ways to reduce server power consumption?
I have a Dell Poweredge 860 (2.4ghz QC, 5GB RAM, 2 HDs) and it uses 0.46AMPs when running normally. The problem is at boot up it spikes for a few seconds here and there to about 0.6 and this is a real problem as I only have a 0.5AMP allowance.
Should I underclock it? Remove the CD Drive?
View 2 Replies
View Related