LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2013, 06:45 PM   #1
geekG
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Question Apache settings 'Requested URL Not Found'


Hi everyone!

I am note quite good at Apache, and trying to tweak the settings.

I randomly put an incorrect url, and it gives a page 'Requested URL not found'. Can any one please tell me the location of this page? I want to replace/update it the page.

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-06-03 at 1.20.01 AM.png
Views:	17
Size:	24.8 KB
ID:	12652  
 
Old 06-02-2013, 10:13 PM   #2
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
Take a look here...
http://www.thesitewizard.com/archive/custom404.shtml
 
Old 06-03-2013, 04:10 AM   #3
sandeepmzc
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by geekG View Post
Hi everyone!

I am note quite good at Apache, and trying to tweak the settings.

I randomly put an incorrect url, and it gives a page 'Requested URL not found'. Can any one please tell me the location of this page? I want to replace/update it the page.

Thanks in advance.
The default location for application in an Apache installation is /var/www/html or /usr/local/apache2/htdocs

Make sure you have your directory placed here in "/var/www/html" or "/usr/local/apache2/htdocs" and it has an index.html or index.php file

in your case, the folder structure, should be like this "/var/www/html/manual1" or "/usr/local/apache2/htdocs/manual1" and an index.html file inside "manual1" directory
Thank U,
Sandeep Sadanandan
www.technixglobal.com
www.technix.in

Last edited by sandeepmzc; 06-03-2013 at 04:17 AM.
 
Old 06-03-2013, 07:11 AM   #4
geekG
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
sandeepmzc, I have all the settings in place, and web is working perfectly.
bloodstreetboy, Thanks, the custom 404 is what i was looking for.
 
Old 06-03-2013, 09:25 AM   #5
Genocide_Hoax
Member
 
Registered: Apr 2011
Distribution: OpenSuse 12.3 , Slackware 13.1 ; Centos 6.2 ; Fedora 14
Posts: 90

Rep: Reputation: 8
If you are using PHP , another approach can to use some sort of framework like zend , CodeIgnitor etc which lets you customize different error pages for different projects.
 
Old 06-03-2013, 09:32 AM   #6
geekG
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Genocide_Hoax, thnx. it's a simple page with css and javascript. but i think i can put the php block on top too. no?
 
Old 06-03-2013, 09:49 AM   #7
Genocide_Hoax
Member
 
Registered: Apr 2011
Distribution: OpenSuse 12.3 , Slackware 13.1 ; Centos 6.2 ; Fedora 14
Posts: 90

Rep: Reputation: 8
What I was trying to tell you is instead of hard coding your error pages directly in your apache module , you can use a framework to work on your projects and create project specific error pages.
 
Old 06-03-2013, 09:52 AM   #8
geekG
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
sure. this can be good stuffs to hack. thnx.
 
Old 06-03-2013, 10:00 AM   #9
Genocide_Hoax
Member
 
Registered: Apr 2011
Distribution: OpenSuse 12.3 , Slackware 13.1 ; Centos 6.2 ; Fedora 14
Posts: 90

Rep: Reputation: 8
Well I won't call it a hack. Rather a trick which many PHP web programmers have migrated to and besides good frameworks saves a lot of time. Let me know if you are looking for something similar in other language.
 
  


Reply

Tags
apache22, configuration, url



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
the url requested was not found 404! great_wall Debian 5 02-15-2013 09:08 PM
404 Not Found The requested URL '/zm' was not found on this server. mickeyboa Ubuntu 8 07-26-2012 11:02 AM
the requested phpmyadmin url not found on server. puneetv Linux - Newbie 8 05-25-2012 09:51 AM
The requested URL /phpmyadmin was not found on this server. zodehala Linux - Newbie 7 08-19-2011 03:17 AM
The requested URL /defaultsite was not found on this server. lqforumuser Linux - Newbie 1 06-28-2009 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration