Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Static HTML

Deleted user November 6, 2018

I'm attempting to display a static page in confluence.

I'm using this article as a guide:

https://confluence.atlassian.com/confkb/how-to-use-confluence-to-serve-static-content-677282407.html

I placed the html file in question in the confluence installation directory (/u02/confluence) but when attempting to access it I get "page not found".  

What should be permissions be?  Am I placing the file in the correct directory?

 

2 answers

1 accepted

0 votes
Answer accepted
Tinker Fadoua
Community Champion
November 7, 2018

@[deleted]what's u02 in your directory? Because it looks like if you have a folder it should be added after confluence directory not before

Deleted user November 7, 2018

Here is a listing of the /u02 directory.

$ cd /u02
$ ls -l
total 945492
-rw-r--r--.  1 root       root 968157248 Jun 15 11:07 2018_06_15-confluence-5.9.10-back.zip
drwx------. 22 confluence root      4096 Nov  6 11:24 confluence
drwx------.  2 root       root     16384 Jun 15 09:26 lost+found

 

Per the article, the static HTML I'm trying to access was placed in /u02/confluence

The file is esrb_12c_connie.html

$ cd confluence
$ ls -l
total 128
drwx------.  2 confluence confluence  4096 Nov  7 00:41 analytics-logs
drwx------.  3 confluence confluence  4096 Jun 15 10:11 attachments
drwxr-xr-x.  3 confluence confluence  4096 Jun 15 13:17 avisi-git-plugin-repositories
drwx------.  2 confluence confluence  4096 Jun 15 10:08 backups
drwx------.  2 confluence confluence  4096 Jun 15 10:06 bundled-plugins
-rw-r--r--.  1 confluence confluence  5738 Oct 15 17:01 confluence.cfg.xml
drwx------.  3 confluence confluence  4096 Jun 15 10:29 data
-rwxr-xr-x.  1 confluence confluence  9053 Nov  6 11:06 esrb_12c_connie.html
drwx------.  7 confluence confluence  4096 Jul  6 10:14 imgEffects
drwx------.  4 confluence confluence  4096 Nov  7 10:41 index
drwx------.  2 confluence confluence  4096 Nov  7 10:41 journal
-rw-------.  1 confluence confluence     0 Jun 15 10:06 lock
drwx------.  2 confluence confluence  4096 Nov  6 11:22 logs
drwxr-xr-x.  2 confluence confluence  4096 Oct 24 11:29 plugins-cache
drwx------.  5 confluence confluence  4096 Jun 15 10:06 plugins-osgi-cache
drwx------.  2 confluence confluence  4096 Jun 15 10:06 plugins-temp
drwxr-xr-x.  2 confluence confluence  4096 Jun 15 11:11 recovery
drwx------.  2 confluence confluence  4096 Jun 15 10:10 restore
drwx------.  8 confluence confluence  4096 Aug  6 09:38 shared-home
-rw-r--r--.  1 confluence confluence   450 Jun 15 11:10 synchrony-args.properties
drwx------.  5 confluence confluence  4096 Nov  7 10:32 temp
drwx------. 30 confluence confluence  4096 Nov  7 10:41 thumbnails
drwx------.  3 confluence confluence 12288 Nov  7 10:41 viewfile
drwx------.  2 confluence confluence 20480 Nov  7 10:32 webresource-temp

Tinker Fadoua
Community Champion
November 7, 2018

@[deleted]looking at the ls you are in the home directory not install directory. There is a Confluence folder under install-directory.

Tinker Fadoua
Community Champion
November 7, 2018

@[deleted]install-directory is where you have:

  • bin folder
  • conf folder.....

Best,

Deleted user November 7, 2018

That was the problem.  It is working now - thank you so much for your help.

Tinker Fadoua
Community Champion
November 7, 2018

Glad to learn it is working @[deleted]. Please don't forget to accept my answer.

Tinker Fadoua
Community Champion
November 7, 2018

👍

0 votes
Tinker Fadoua
Community Champion
November 6, 2018

@[deleted]

Did you try to restart the service once you added the file?

Best,

Deleted user November 6, 2018

I will restart the service this evening, hopefully that will work.

Thanks!

Tinker Fadoua
Community Champion
November 6, 2018

I will keep my fingers crossed @[deleted] :)

Deleted user November 7, 2018

A restart did not fix the "Page Not Found" error

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events