I'm hosting a site for a local company. Without SSL, the website loads fine, but when we try to access it securely, I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH (Except for when I try to view it locally)
When I go to check the logs, I don't see any issues. I've set the log level for this site to be debug, and I see a bunch of lines saying that authorization is granted, so I don't think the issue is with Apache2, but I don't know what the issue might be.
In the WordPress control panel, I've gone in and tried to make sure that all SSL controls there are disabled.
Here's my SSL config for the site:
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
#SKIP log and serverAlias settings, as well as DocumentRoot. I can provide it it's really necessary
<Directory />
Options FollowSymLinks
AllowOverride Limit Options FileInfo
Require all granted
DirectoryIndex index.php
Allow from all
Order allow,deny
</Directory>
<Directory path/>
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
#SKIP SSLCert paths. CA is GoDaddy
When I use https://www.ssllabs.com/ssltest it comes back with an 'A' rating, so I'm confident that I've got everything set up, which makes me even more lost.
A cybersec friend suggested the issue might be a keying issue with the certificate.
Needed to re-key the certificate, which resolved the error.
Related
When I open my website URL it shows Index /
1) I have index.php in the same directory
2) Config file at /etc/apache2/sites-available/example.com.conf
has following code:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/intricare>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
If I Refresh the URL again it loads the website without issue.
URL: intricare.net
Your problem is a cache somewhere on your network. When you manually refresh the site, your browser sends an extra header telling the server it desires a fresh copy: cache-control: no-cache.
If that header is sent, the current/correct version of the page is returned. If it is not, the cached directory listing is.
If you have curl installed, you can test it yourself with
curl https://www.intricare.net/
and
curl -H "cache-control:no-cache" https://www.intricare.net/
The latter produces the correct output.
If you're using any caching plugins: make them clear the cache. It might also be your hosting provider that is providing the cache, in that case look at their FAQs or ask them how to clear it.
I have installed a Wordpress instance using Bitnami.
Currently 127.0.0.1 takes my to the file in the C:\Bitnami\wordpress-4.4.2-1\apache2\htdocs
I want 127.0.0.1 to take the user to C:/Bitnami/wordpress-4.4.2-1/apps/wordpress/htdocs
Changes i have done:
Edit the httpd.conf file
DocumentRoot "C:/Bitnami/wordpress-4.4.2-1/apps/wordpress/htdocs"
<Directory "C:/Bitnami/wordpress-4.4.2-1/apps/wordpress/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Require all granted
allow from all
</Directory>
Restarted apache server
Still going to 127.0.0.1 shows the index.php page under C:\Bitnami\wordpress-4.4.2-1\apache2\htdocs
What am i missing?
I don't know about Windows, but on my Ubuntu system, I also had to change document root in the sites-enabled/000-default.conf file. Just make sure all configuration files are updated correctly to point to your new document root.
Hope this helps!
The company I'm working for has a PC for hosting our website. I can access the website with http without any problem but when I add https it gives me this error. We are using apache for our web server (XAMPP).
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
However when I try to copy the website to my other computer (also with XAMPP on it) and run the website in localhost with https its working fine. I tried to look for answer but I can't seem to find the one that I'm looking for. Does anyone have encountered this problem or know what may have caused this?
Thanks in advance
Had same issue on LAMP server. In the ssl.conf file we changed AllowOverride None for ; to AllowOverride All. That corrected the problem.
DocumentRoot /var/www/
< Directory />
Options FollowSymLinks
AllowOverride None
< /Directory>
< Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
< /Directory>
I fixed the problem. It was because the DocumentRoot directory and Servername in http-ssl.conf in apache/conf/extra folder was still set on default. I changed it so it uses the same servername and documentroot directory that I had specified in httpd-vhosts.conf
I have spent 4-5 hours to sort it out but not able to solve it.
I have setup my wordpress website on AWS.Everything is working file except the permalinks of wordpress.
When permalinks are set to default pages/posts are working but not working with "%post-name%".
I have tried almost all the things by searching over google but no success.
I saw so many solutions all related to httpd.conf file but on my root there is no file httpd.conf neither no directory of http.
I changed the following code in apache.conf file but still not working
<Directory />
Options FollowSymLinks
AllowOverride All
Require all denied
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Restarted apache again and again but no luck.
Please help me guys.
Thanks.
I've just managed to fix this error. Make sure you restart Apache service after making the httpd.conf change!
Documentation here has a checklist of all the changes you need to get wordpress working correclty on AWS - including getting permissions correct: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html
The bit you need to fix for permalinks is tp update the httpd.conf file
(1) Location: /etc/httpd/conf/httpd.conf
(2) Find the section that starts with <Directory "/var/www/html">
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
Change the AllowOverride None line in the above section to read AllowOverride All
Note
There are multiple AllowOverride lines in this file; be sure you change the line in the section.
AllowOverride All
(3) Restart the Apache service
If you dont have much experience using aws, then i guess its because you have not granted enough permissions to your apache. If you are unware of how to grant permissions to your apache, you can use this command in your console
sudo CHOWN -R apache:apache /var/www/html
Once done try going to your settings page and saving the new settings.
This was working for years until I did something that has now jacked this up....
Searching on this topic landed me in several places that basically said: You need to check the Wordpress URL and the site URL in the general settings in Wordpress. I have done so and they are both: http://www.petesworkshop.com/blog_wp . Yet, when I hit that URL I am redirected to my internal IP and get a error http://10.0.10.206/blog_wp (yep, that would be wrong!
Interestingly enough, I can get to the admin page just fine and it is just a subfolder of blog_wp. So, somehow things directed to /blog_wp return the IP but everything else is OK. Wierd.
Wordpress sits behind an Apache proxy which has this directive for the virtual host:
<VirtualHost *:80>
ServerName www.petesworkshop.com
ServerAlias petesworkshop.com
ProxyPass / http://10.0.10.206:5080/
ProxyPassReverse / http://10.0.10.206:5080/
</VirtualHost>
The server running the website behind the proxy has this:
DocumentRoot "/www/petes/htdocs/petesworkshop/"
ServerName www.petesworkshop.com
ServerAlias petesworkshop.com
DirectoryIndex index.html index.php index.htm
ErrorLog logs/petesworkshop.log
Options FollowSymLinks
Alias /blog_wp /www/petes/htdocs/petesworkshop/blog_wp
<Directory /www/petes/htdocs/petesworkshop/blog_wp >
Order Allow,Deny
Allow From all
</Directory>
<Directory /www/petes/htdocs/petesworkshop >
Order Allow,Deny
Allow From all
</Directory>
I am not sure how I jacked this up...it is probably something that I did to the Apache configuration but I can't be sure since everything else behind the proxy works fine. I even tried adding specific ProxyPass entries for /blog_wp but that didn't make any difference.
Stumped...
Check your wp-config.php for correct urls
like below
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
This one turned out to be an Apache proxy issue. What I needed was to add 'ProxyPreserveHost On' to the configuration, which I thought I had in there originally but I either removed it in an edit or had it placed in the wrong virtual host. In any case, adding the ProxyPreserveHost On flag, took care of the issue. Not sure why other entries in the same virtual host DID work without it but I am not going to worry about it.
I had a similar problem some time ago, whenever I wrote my domain in the browser it was solved correctly but my domain name was changed by the IP, after much research it turned out that the problem was in the hosting, not in the server, so which only change the configuration of my domain in GoDaddy since I was only doing a redirection but the correct thing was to create an A record that points to # (which represents your domain name) and everything started to work correctly. I hope it's help