404 on welcome page #1447

Closed
opened 2025-11-02 04:01:13 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ShalokShalom on GitHub (Jan 12, 2018).

  • Gitea version (or commit ref): Gitea version 1.3.2 built with: bindata, sqlite
  • Git version: 2.15.1
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

https://gist.github.com/ShalokShalom/2abd30f454660d0d7fb64fca797b11af

Screenshots

screenshot_20180112_175243

Originally created by @ShalokShalom on GitHub (Jan 12, 2018). - Gitea version (or commit ref): Gitea version 1.3.2 built with: bindata, sqlite - Git version: 2.15.1 - Operating system: CentOS 7 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: https://gist.github.com/ShalokShalom/2abd30f454660d0d7fb64fca797b11af ## Screenshots ![screenshot_20180112_175243](https://user-images.githubusercontent.com/6344099/34886981-3d38fdf4-f7c5-11e7-853b-78376318765b.png)
Author
Owner

@supervirus commented on GitHub (Jan 13, 2018):

Hi,
I had the same problem on my uberspace 7 account, when gitea is used behind an apache as proxy.
Apache tried to open index.html, which doesn't exist...
After adding an additional rewrite rule for index.html everything was ok.

Here is the .htaccess im using:

RewriteEngine On
RewriteBase /
RewriteRule ^index.html http://localhost:12345/ [P]
RewriteRule (.*) http://localhost:12345/$1 [P]

Update instead of rewriting index.html it is better/easier to disabled mod_dir, which is the cause :

DirectoryIndex disabled
RewriteEngine On
RewriteRule (.*) http://localhost:12345/$1 [P]
@supervirus commented on GitHub (Jan 13, 2018): Hi, I had the same problem on my uberspace 7 account, when gitea is used behind an apache as proxy. Apache tried to open index.html, which doesn't exist... After adding an additional rewrite rule for index.html everything was ok. Here is the .htaccess im using: ``` RewriteEngine On RewriteBase / RewriteRule ^index.html http://localhost:12345/ [P] RewriteRule (.*) http://localhost:12345/$1 [P] ``` **Update** instead of rewriting index.html it is better/easier to disabled mod_dir, which is the cause : ``` DirectoryIndex disabled RewriteEngine On RewriteRule (.*) http://localhost:12345/$1 [P] ```
Author
Owner

@ShalokShalom commented on GitHub (Jan 13, 2018):

Wonderful ^-^

@ShalokShalom commented on GitHub (Jan 13, 2018): Wonderful ^-^
Author
Owner

@ShalokShalom commented on GitHub (Jan 13, 2018):

Do you know something about this as well? https://github.com/go-gitea/gitea/issues/3361

Do the links on the explore page and the user pages direct you correctly to the repositories?

@ShalokShalom commented on GitHub (Jan 13, 2018): Do you know something about this as well? https://github.com/go-gitea/gitea/issues/3361 Do the links on the explore page and the user pages direct you correctly to the repositories?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1447