Apache :: 404 Not Found Https Setup
Apr 11, 2014i 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
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
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.
I have install Plesk 11.5.3 on my Windows Server 2008 r2. I want to try Mailenable on the PleskServer, so i installed the feature, but know when I am calling the webmailer with http:webmail.domainname.de works fine, but when I try https://webmail.domainname.de i become a Not found: HTTP Error 404. The requested resource is not found
Whats wrong? On my linux Server its work fine...
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>
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.
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
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
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?
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 RelatedI´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?
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.
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)
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] ....
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 RelatedI 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}
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]
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.
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
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.
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 RelatedI'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.
After installing Zend with /scripts/installzendopt on a cPanel server I am getting the following:
Code:
root@comet [~]# apachectl start
/usr/sbin/apachectl: Apache 1.3 configuration directives found
/usr/sbin/apachectl: please read /usr/share/doc/httpd-2.0.52/migration.html
Virtualhosts look like this:
Code:
<VirtualHost [IP]>
ServerAlias [www.domain.com]
ServerAdmin webmaster@[domain.com]
DocumentRoot /home/fohrmann/public_html/[username]
ServerName [domain.com]
User [user]
Group [group]
BytesLog /usr/local/apache/domlogs/[logfile]
CustomLog /usr/local/apache/domlogs/[logfile] combined
ScriptAlias /cgi-bin/ /home/[username]/public_html/gb/cgi-bin/
</VirtualHost>
A newby to web hosting, I get a lot of "script not found or unable to stat:" errors. Should I be concerned? The web site seems to be working fine. The entire error message looks like this: script not found or unable to stat: /home/coin99/public_html/cgi-bin/cq/undefined, referer: URL...
The public_html/cgi-bin/cq/ directory contains the main Perl script for my site. It is called 'coins' (no extension). There is no file or directory called 'undefined.' The referer is a page on my site.
When I open my site in a browser and I point the URL to specifically // ipaddress / location A it's all good. (Apache Server)..My problem is, if you open the site in a browser with just the IP address alone it goes there for a second and then automaticlly goes to and opens the other site in location // ipaddress / location B.
However, what I need it to do, I think, is edit the apache conf file to make it open location A as the default. What do I need to do in the apache (httpd-conf) to fix that? For that matter is that the right file to edit?
Im using AJAX on my site and i need to access a seperate server instance on a different port. AJAX wont allow me to do that so i want to use Apache as a proxy but only for one page.
View 4 Replies View RelatedI been using plesk, and cpanel so this is the first time I have Webmin for my CentOS.
After some googling and reading, i able to install apache, mysqld and vsftpd (for some reason, my host (hivelocity) didnt install these. So this is my setup.
a.com: in godaddy, i add nameserver host as ns1.a.com and ns2.a.com and change the dns to point to that
b.com: in godday, point dns to ns1.a.com and ns2.a.com
BIND DNS Server
========================
I create two master zone for a.com and b.com
a.com
Code:
$ttl 38400
a.com. IN SOA server.a.com. abc.yahoo.com. (
1226206691
10800
3600
604800
38400 )
a.com. IN A 1.2.3.4
server.a.com. IN A 1.2.3.4
a.com. IN NS server.a.com.
mail.a.com. IN A 1.2.3.4
ftp.a.com. IN CNAME a.com.
www.a.com. IN CNAME a.com.
a.com. IN MX 10 mail.a.com.
b.com
Code:
$ttl 38400
b.com. IN SOA server.a.com. abc.yahoo.com. (
1226206691
10800
3600
604800
38400 )
b.com. IN A 1.2.3.4
server.a.com. IN A 1.2.3.4
b.com. IN NS server.a.com.
mail.b.com. IN A 1.2.3.4
ftp.b.com. IN CNAME b.com.
www.b.com. IN CNAME b.com.
b.com. IN MX 10 mail.b.com.
APACHE
========================
I created 2 virtual servers for a.com and b.com
/home/sites/a.com/html
/home/sites/b.com/html
I create an index.php in a.com/html with content: "a.com YEAH"
I create an index.php in b.com/html with content: "b.com YEAH"
After wait for dns to propogated,
when i try to go to a.com, content "a.com YEAH" shows up.
But when goto b.com, content "a.com YEAH" shows up? Why?
Also, when goto ns1.a.com, content "a.com YEAH" is there.
I also has problem with vsftpd but let fix that later.
I have a fresh Ubuntu 14.04 install (desktop). I installed Apache, php and mysql from APT and updated everything.I tried to setup a virtual host using these directions: URL...I followed them to the letter:
o I created a folder /var/www/mydomain.local/public_html
o I copied the 000-default.conf in sites available and modified it
o I added mydomain.local to my hosts file (with IP of 127.0.0.1
o I used a2ensite to enable the host
o I used service apache2 reload
When I went to mydomain.local in firefox, it took me to the default host main page.I tried a restart of the service and even a reboot of the computer. No change.On a theory, I used a2dissite to remote 000-default from the enabled site list and reloaded the service. I got the home page for mydomain.local after that.
I created a named host called localhost and reloaded the apache. When I went to http://localhost it took me to the mydomain.local homepage. Rebooted the computer. Now, localhost gives me the apache default home page and mydomain.local does not work at all (I get a server not found).
I get the feeling that there is an apache configuration item I am missing but I cannot find it.
I am struggling with this all the day, no answer i found here as well. how to setup proper a subdomain i need. My Apache config has 2 domains configured (on same IP), for the domain2.com i need to setup a sub-domain. Here is what i have so far, but the subdomain keeps redirecting me to domain2.com (main site).
View 2 Replies View RelatedI am using Apache 2.4 and Jboss 7.1 on Windows server 2012 server. requirement is to have SSL offload in place for communication between Apache to Jboss. Apache will be secured to handle client requests from Apache onwards all servers in trusted zone hence there is offload requirement.
View 6 Replies View Related