Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Links to .doc and .pdf files coming up 404 in Coral 8.5.4

Featured Replies

Hi all,

 

I'm running Coral 8.5.4 as a testing server for a static website. It's installed on my WinXP local machine.

 

I have a directory /docs/ (as in /www/docs/) where all the document attachments such as .pdf and .doc live.

 

While navigating localhost in a web browser, any link to a document in localhost/docs/ results in a 404 error, even though the link address is not wrong, and I can clearly see the allegedly missing file present in /www/docs/ when I browse via Windows Explorer.

 

The links work again when I migrate from the test environment to prod. (Prod is an apache server run by a central IT group in my organisation - I have no access to its configuration.)

 

Things I've tried:

 

The mime types (main ones are .pdf, .doc, .docx) all seem to be present and accounted for in \UniServer\usr\local\apache2\conf\mime.types

 

The file names are mixed case and the hrefs correctly reflect the mixed case, however I enabled mod_speling just in case that was the problem - no joy.

 

Any thoughts?

 

Many thanks for your help.

If you type the following into your browser: http://localhost/docs/

a directory listing of Uniform Servers documentation is displayed.

 

Your links are trying to locate pages within Uniform Servers documentation folder hence the 404 errors.

 

Solution 1:

Solution is to rename your docs folder to documentation (or some other name) and change all your links accordingly. Admittedly this is not an ideal solution because you are then coding to a specific server limitation.

 

Solution 2:

Alternative solution is to change Uniform Servers configuration to allow folder www to contain a folder named docs as follows.

 

Rename folder UniServer\docs to UniServer\docs_us

 

Edit file: UniServer\usr\local\apache2\conf\httpd.conf

Note: Your paths may differ . Change only the docs.

 

Locate this line:

Alias /docs "C:/UniServer/docs/"

Change to:

Alias /us_docs "C:/UniServer/docs_us/"

 

Locate this section:

<Directory "C:/UniServer/docs/">
 Options Indexes Includes
AllowOverride All
Require all granted
</Directory>

 

Change to:

<Directory "C:/UniServer/docs_us/">
 Options Indexes Includes
AllowOverride All
Require all granted
</Directory>

 

At this stage the server will function correctly however the server help documentation links will fail.

 

Edit file:

UniServer\uni_con\includes\core_config_inc.vbs

Locate line:

US_DOCS = UNICON_PATH & "docs" '* Top docs folder

Change to:

US_DOCS = UNICON_PATH & "docs_us" '* Top docs folder

 

Restart server and clean browser cache.

All the best

Ric :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.