Having issues setting custom 404 page...

Advertisement

Hey all,
I'm not sure if I'm missing a step, I created a custom 404 page ("404.html") and it's in the root of the website folder.  Under Websites (tab) > Server Website, I click Advanced Settings and set the custom error page to "/404.html", yet entering, say, website.com/abc, still brings me to the generic Apache 404 page.
I also tried specifying the 404 page as "/404" and "404.html", and I tried adding it to the index file list.. No dice.
I'm sure I could do it manually via the .htaccess file, but before I do that (and before I inquire about doing that), I want to make sure I'm doing everything I should be doing through the Server App.
Any ideas?

Advertisement

Okay, I ended up creating and using a .htaccess file to override Apache's default settings, since I had issues saving changes to the .conf files in Library/Server/Web/Config/apache2, it's very locked down, and for good reason of course.
For those with the same issue,
0.5) In OS X Server app's Website settings, click "Advanced Settings" and check the "allow overrides using .htaccess files" box.
1) Create a new document in your favorite text editor.  I used TextWrangler, free from the App Store.
2) Copy the text
ErrorDocument 404 /pathtofile
and change /pathtofile to the path to your custom 404 page, which can be HTML or PHP. 
3) Save the file as ".htaccess" ideally into the root of your website folder directly, because the dot at the beginning makes it hidden, so you can't save it to the desktop and move it later (unless you show hidden files via that Terminal command)
4) Done!  You don't have to restart Apache or OS X Server or OS X for the change to take effect, just go to yoursite.com/someRandomURLthatDoesn'tExist and watch the magic.
Courtesy of http://askubuntu.com/questions/53199/custom-apache-404-page and Google.

November 30, -0001

Having issues setting custom 404 page...

Hey all, I'm not sure if I'm missing a step, I created a custom 404 page ("404.html") and it's in the root of the website folder.  Under Websites (tab) > Server Website, I click Advanced Settings and set the custom error page to "/404.ht

Custom 404 page

Hi, I have created a custom 404 page called 404.cfm. I am usingCF8 on IIS6. In IIS 6 I specified this custom 404 page as a File. When a user types a wrong address in IE, I can see my custom 404 page. But when I type the wrong address in Firefox, noth

Custom 404 Page Not Found, can't get it to work...

Environment: 1 CF webserver, 2 websites on the webserver (www.example1.com,www.example2.com) Problem: I want to create a custom 404 page not found for each site. I can't use the "Site-wide Error Handler " in the CF administor because it makes th

Anybody having issues with custom iTunes Radio Stations you've created not being available?

Created a custom iTunes Radio station today with about 20 artists.  Able to access it on my iMac and my Apple TV but not my iPhone (it shows but nothing happens when I try to play it).Thanks for your reply.  However I logged into the FTP client on go

Custom 404-page for a single directory ?

Is it possible to change the 404 error response for a single directory (and ist subdirectories)? Like I can do with a ".htaccess" - file on an apache webserver? I know it's possible to do it global with weblogic.httpd.errorPage.xxx=URL in weblog

Custom 404 cfm pages, and ColdFusion flash forms not working together

Hi, I've recently ran into an issue that I was hoping I could have a little help with. My company has been using custom 404 pages for awhile that we set up in iis however we had never set up this custom 404 page to display on .cfm pages, only missing

Issues with Custom Settings

Is anyone else having issues with custom settings on 10.8.2? I am trying to configure basic office 2011 settings based on the keys located at http://afp548.com/mediawiki/index.php/Office_2011_Settings using a device group. However, when I log into an

Change the 404 page?

Anyone know if it is possible to change the 404 page so that I can get it to go to a custom 404-"Page not found" page rather than the standard .Mac one. Seriously updating and renovating my website, hence page names are changing, and do not want

Issue with messagedownload field on custom OAF page

We have a custom OAF page where we are displaying file attachments using messagedownload field. We have a VO for this field where we are fetching the file name and file (BLOB). For the message download field, the properties are set as: DataType: VARC

Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.

Safari tries repeatedly to open a page. The page partially opens but then Safari reports that there's something wrong with page and I get an error message. This is happening at too many web sites for one site to be having issues.I have a similar prob

Setting the custom master page through powershell is NOT working

Hi,  I am writing the below code to set the  custom master page through powershell. But its not working .when i went to site settings-->master page --> in the drodown , the  maste page set is seattle.master ONLY, though my current master page is ava

Custom 404 Error page in Sharepoint Foundation 2013

Hi all, How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion. Thanks.Can i create any page and pass the page url in it,like if i have

CQ5 Multiple custom 404 error pages for multiple sites

HI, I have multiple sites, and I would like to set up a different 404 page for each of my sites Someone already faced this problem? How I can accomplish this? Or there is a way to do via the dispatcher and create a static 404 error HTML page each tim

I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established.

I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established. I have contacted apple via email and tried all the steps they have recommended and it is sti

Whenever I try to download the Edge Animate tutorials it says currently having issues ant to contact customer support

Whenever I try to download the Edge Animate tutorials it says currently having issues ant to contact customer supportHi, Now sure from where you are downloading edge animate tutorials. Can you please post any link or screenshots? If it is within brow

Issues in the How To "Build custom popup pages" document

I followed the How-To document: "Build custom popup pages". It worked well with non-special-character data. But when I tested ename = KING's, the JavaScript could not handle this ename. I believe other special characters will have similar proble

How to Build Custom JSP Page to bypass Oracle Apps Login

Hi All, Can some one guide me how to develop a custom jsp page to bypass Oracle Apps R12 Login. Actually Our requirement is some external user will enter the login details in some third party login page with the third party generated username and pas

Custom Logout Page based on PL/SQL

Hi I need to write a custom logout page using PL/SQL Procedure.I have created a procedure as : create or replace PROCEDURE my_logout p_done_url in varchar2 default null, p_paname in wwsec_api.array default wwsec_api.empty, p_palogout in wwsec_api.arr

Having issue uploading,viewing and editing using PSE7 & 12

Hello there!! So I was having issues with photos uploading, not uploading into my PSE7, so once it wouldn't upload anymore, I thought okay, maybe it's the program, it's too old or whatnot.  So I bought and downloaded PSE12 *which I really wanted anyw

SharePoint 2013 Apps shows 404 page not found on web front end servers.

Hi All, We are implementing SharePoint Apps for our UAT environment with 1 application server and 2 WFEs. In our development server which is single server worked for implementing SharePoint Apps. All our web applications WFEs are hosted UAT environme