Forcing localhost to use https results in a 403 error - apache

I am working on a php website. I am working on it using Aptana with XAMPP. I recently changed my htaccess file to force my site to use https on the localhost. I haven't yet implemented a ssl certificate. When I try to access a webpage now, I am directed to a page that says:
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 403
localhost
Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3
I found some solutions to this but I really want to know why this is occurring. I know that I can change the httpd.conf file to fix it but I still don't understand what is happening.

Related

Is Google using Debian and Apache?

Today, while I was searching, I was suddenly confronted with an error message from Google server, that was a 404 not found error with this contents :
Not Found The Requested URL /search was not found in this server.
Apache/2.2.22 (Debian) Server at www.google.com Port 443 (notic)
When I refreshed the page that error message was cleared and I saw the search results.
That error was acquired when google was trying to keep this information hidden.
It's true!? Anyone have any idea?!

Contao CMS error with https - 404 error

Morning
I have a domain, www.example.com, which is a Contao 3.1.3 CMS website on Linux Apache.
I have just purchased and installed SSL certificate for the domain.
When I go to https://www.example.com (or https://example.com) all works fine.
when I try one of the other pages on the domain, http://www.example.com/folder/page.html all is fine, but with https://www.example.com/folder/page.html
, I get an error:
The requested URL /folder/page.html was not found on this server.
This does not happen with pages in the admin area, which all appear fine via https
Console log shows:
Failed to load resource: the server responded with a status of 404 (Not Found)
What is the solution to make all pages appear ok under https
I tried this: https://community.contao.org/de/showthread.php?43595-SSL-und-Contao
but it didn't help
I also checked https://www.sslshopper.com/ssl-checker.htm to see if the error is with the ssl certificate, but no problems found there.
Jez D
Problem cannot be on the SSL. From your explanation I would suggest you play around with disabling folder urls and url rewrite in the settings. Then make sure the page exists. I am sure from here you will be able trace down the problem.
Make sure also in the root page, the 'domain' field is on https if its set.
You can restore your folder and url rewrite settings when all is well
The issue was actually with the directives on the virtual server.

xampp error 404: object not found

Error 404
localhost
06/21/14 11:16:38
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
I am working with xampp and joomla.... when i run my localhost in url it opens me the xampp page ....then if i try to run in url localhost/som(directory_name) then it gives me error
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
localhost
06/21/14 11:34:02
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
my directory already exist...
You need to edit the .htaccess file. It might be hidden in the same directory.
I suggest you to put an index.php OR any other file inside the directory
and access it like localhost/som(directory_name)/my_file.php because your apache
may be configured not to list directory index. Let me know if your problem still
persist.
check joomla > global configuration > use URL rewriting, this must be set "no" in local configurations (xampp).

Apache - Domain not resolving : 404 errors

My Centos 5.1 VPS (WHM) had to be hard rebooted earlier and all the sites apart from one have come back online. The non working domain pings with 0% packet loss so it looks as though Apache is serving, however, I get the error:
Not Found
The requested URL / was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I checked the DNS settings and as expected, they point to the host. I checked the permissions and CHMOD values for the public_html folder and they are all correct. I restarted Apache and BIND but I still can't get the domain to work. Incidentally, adding erroneous characters to .htaccess (in an attempt to produce an error), does not make any difference. The host did a system file check which showed no errors.
What have I missed?

Virtual host and subdomains on Wamp windows

I want to create virtual host and sub-domains for that host on local machine such that my localhost serve as a website like I do not need to write localhost in url bar:
localhost ---> mysite.com
---> sd1.mysite.com
---> sd2.mysite.com
actually I am using wordpress plugin WP Subdomains which makes sub-domain for main categories like.
cat1.localhost
cat2.localhost
but if we try to access cat1.localhost browser error Server not found which is definitely because we did not create sub-domain named cat1 for localhost.
I google but no solution found which exactly solve my problem.
I also followed http://www.talkphp.com/general/2170-setup-sub-domain-wamp.html
but following error appear:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, admin#localhost and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error
log.
Okay got it....
I followed http://www.talkphp.com/general/2170-setup-sub-domain-wamp.html but skip step 3:
Open up: C:\wamp\bin\apache\apache2.2.6\conf\extra\httpd-vhosts.conf.
and in httpd.conf comment DocumentRoot "E:/wamp/www/" and add
DocumentRoot "E:/wamp/www/wordpress"
and it work. :)
Please follow the link below. I tried this and working fine for me.
http://www.axertion.com/tutorials/2012/03/how-to-setup-local-subdomains-using-wampserver/