top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Apache: How to solve "The requested URL /.../..../ was not found on this server."

+1 vote
1,262 views

I am working on a Ubuntu 10.04 server, on which I installed PHP 5.3, Apache 2 2.2.9. I followed the below steps to do the installation :

  1. I installed apache2 using SUDO APT-GET INSTALL APACHE2

  2. I also installed libapache2 and php using the below commands
    sudo apt-get install php5 libapache2-mod-php5
    sudo apt-get install php5-core

  3. I did redirection to port by configuring the DEFAULT file in /ETC/APACHE2/SITES-AVAILABLE. Redirection happened successfully.

  4. PHP5-curl was installed using
    SUDO APT-GET INSTALL PHP5-CURL

  5. Rewrite mod was enabled in apache2 using
    SUDO A2ENMOD REWRITE and apache2 was restarted.

Now, after following this if I try to access the URL, I get the following message -

 THE REQUESTED URL /.../..../ WAS NOT FOUND ON THIS SERVER.  

But, the same URL is accessed from another system with the same configuration , it works fine.

posted Dec 3, 2013 by Bob Wise

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

1) To enable communication's effectiveness, please post full /ETC/APACHE2/SITES-AVAILABLE/DEFAULT 's contents.
2) Please be sure to have done "SUDO E2ENSITE DEFAULT" after initially eventually having disabled it.

answer Dec 3, 2013 by anonymous
Similar Questions
+3 votes

I want to redirect a url to an application on same apache server. My development environment is Ubuntu. I enables the mod_proxy. But my url isnt redirecting to the desired application. Following is the code I put inside the /etc/apache2/sites-available/default file. I put this bottom of the file but before the "VirtualHost" tag.

ProxyRequests On 
ProxyVia On  
Order deny,allow 
Deny from all 
Allow from localhost  ProxyPass /application_directory/ http://localhost/application/directory ProxyPassReverse /application_directory/ http://localhost/application/directory 
0 votes

While clicking on the image it opens into the browser. I dont want to allow client to open the image in browser as separate url. I have blocked the /image/ directory from access/listing , but the image is opening.

How to stop that in apache. Please help me.

0 votes

I am newbie in Apache concepts and only know Apache Tomcat. Following is my requirement, would anybody please help me how to setup.

I have a clustered JBOSS EAP 6.3 instances running on two different Windows 8 machines. Now I am planning to put a load balancer to dispatch the requests to these JBOSS clustered servers.

I am thinking of Apache httpds as a load balancer. What I got to know is these Apache web server will be available in source code and source code needs to be compiled as per the environment.

I am not finding any Windows 8 (64bit) Apache http installed in the Apache site. Would someone help me from where to download the Windows 8 (64bit) version of Apache httpd service.

And also any guide to setup the load balancer on Windows machine.

+2 votes

Please tell us about the apache settings so that we can set the Proxytimeout to "each URL"?

example
URL1:
timeout = 60

URL2:
timeout = 300

+1 vote

After setting "ServerTokens Prod", I would like to modify or remove the server header that says "Apache" from the response. Reading some googles it says that is not possible with "Header unset server"
as you'd expect from reading
http://httpd.apache.org/docs/current/mod/mod_headers.html

Besides modifying the source, is there some new trick that is supposed to work? I can't seem to read it in the (mod_header) documentation for 2.4.

IBM's version of Apache has a directive AddServerHeader off http://publib.boulder.ibm.com/httpserv/manual70/mod/core.html#addserverheader
I am really really curious, why didn't the brilliant IBM Engineers not include that change in the main Apache dev trunk?

...