apache/2.4.54 (win64) openssl/1.1.1p php/8.1.12 server at localhost port 80 - error-handling

I tried to solve this error By changing port, adding htaccess file And Re-downloading xampp But still getting this error
Plzz help ..(All my folders are in the right place).

Related

hostname not working in another Tomcat server

I have been using
127.0.0.1 localhost
127.0.0.12 www.example.com
in my hosts file in a previous tomcat server.
I downloaded another version of tomcat and the hostname www.example.com is not working it gives me 404 error I think there is a conflict when I tried for example:
127.0.0.1 localhost
127.0.0.12 www.example-s.com
It worked. But, I need my old hostname.
How do I solve this problem?
Please think twice:
You got an 404 error - which is an http status code!
This means that your DNS is working!
The 404 error means that your tomcat could not find the requested resource.
For example:
http://www.example.com/
resulting in 404 error will mean that maybe you have deleted the
Tomcat:webapps/ROOT
directory. Or you have changed the server.xml config.

apache not serving index.html unless specified

Im new to setting up apache - the site works fine on localhost but when I access it from the LAN it does now display the index.html file - instead the browser says:
This site can’t be reached
localhost refused to connect.
Ive tried editing the apache2.conf file but nothing seems to work
I think you made another mistake. When you are on a different Computer on you network, the Apache server is not available on http://localhost/ but on the domain name or IP of the Apache Server.
The browser tries to open a connection to your client computer. But its not on localhost.

.htaccess file cant be read on 9999 but working on 8080

I am trying to do something in .htaccess file but before doing it i am facing some problem and i have no clue about it
first of all my UAT server's html pages can be accessed through
http://xx.xx.xx.xx:9999/cms
and in 9999 it is hosted in apache-tomcat
and htaccess file code :
RewriteEngine on
dadada
but its not throwing 500 internal server error it means it cant read .htaccess file
BUT
but in 8080 is only in apache2.2
http://xx.xx.xx.xx:8080/cms/
in port 8080 it is mapped to /var/www/html/ so i place my html file here with .htaccess file and wooohhhaa it was working on 8080 with 500 server error but it when i deleted .htaccess file and just browse ny index page it says
"Forbidden
You don't have permission to access /cms/ on this server."
now i have two questions.
Why htaccess is not running on port 9999 but on 8080?
and whats wrong with the permissions on 8080?

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).

XAMPP/Apache won't launch on port 81

I just installed the latest XAMPP and I changed httpd.conf so it listens on port 81 (because Skype listens on 80):
Listen 81
However when I use the XAMPP CP to launch Apache, it says:
Apache started [Port 80]
and then fails. If I stop Skype it says the same thing but doesn't fail and Apache listens on port 81, so my Apache config must be correct.
Why is XAMPP still checking port 80 and how do I stop it? I am running Windows 64-bit. XAMPP is installed in C:\xampp
I got the solution from XAMPP support so I'm answering my own question:
The solution was to change the port number in the sample XAMPP.INI file provided, then copy it to the xampp root dir.
There is another line further down in the .conf file that also needs changing.
ServerName localhost:80
Now start Apache and MySQL, browse to http://localhost:81, and the contents of your htdocs folder should appear.
Regarding the message displayed in the xampp window, I would ignore it. Mine displays '[Port 80]' regardless of which port I have set it to use.