| Summary: | [Site]Starting self hosting site does not bring me to the index.html. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | 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
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. The sites feature was relying on the WelcomeFileFilter for this redirect behavior. This appears to have changed recently, I will investigate. (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. 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
|