Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 373145

Summary: [Site]Starting self hosting site does not bring me to the index.html.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: john.arthorne, mamacdon, simon_kaegi
Version: 0.4   
Target Milestone: 0.5 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 370027    
Bug Blocks:    

Description libing wang CLA 2012-03-02 16:03:21 EST
Just found it in the current  orion.eclipse.org.
When I clicked on the site link in http://orion.eclipse.org/sites/sites.html, it just showed me Index of /anothersite.orion.eclipse.org/.
I had to clcik on the index.html to use self hoasting.
Comment 1 Simon Kaegi CLA 2012-03-02 16:50:32 EST
For convenience and to match a regualar running Orion we might want to add a mapping for the self-hosting case. However I really did purposely want to get  away from auto-mapping folder requests to index.html as a general rule as this is a non-standard feature for general purpose web servers.
Comment 2 Mark Macdonald CLA 2012-03-03 15:22:26 EST
The sites feature was relying on the WelcomeFileFilter for this redirect behavior. This appears to have changed recently, I will investigate.
Comment 3 John Arthorne CLA 2012-03-07 16:19:40 EST
(In reply to comment #1)
> However I really did purposely want to get 
> away from auto-mapping folder requests to index.html as a general rule as this
> is a non-standard feature for general purpose web servers.

Really? I thought these kinds of rewrite rules were very common in Apache.
Comment 4 Mark Macdonald CLA 2012-03-08 16:50:13 EST
I've added a mapping that handles /index.html into the self-hosting site configuration.

To get the fix, you will need to refresh your self-hosting setup:
- Open your self-hosting site in the editor
- Click "Convert to self hosting" on the toolbar, and choose the folder where your client code is located.
- Click OK, then Save.
The next time you start the site, it should redirect.

Note, however, that this only redirects for the top level ('/') of your hosted site. Bug 342034 talks about extending this behavior to any folder.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=40cd0f2b139d393b63c3e864f45c439de8e7c5a7