Comments (14)
Have you enabled the mod_rewrite on the apache server?
It's installed in the subdirectory /xbackbone/ ?
from xbackbone.
Yes I had, the redirection worked only after I added this to the apache conf
<Directory /var/www/xbackbone/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
But now I'm seeing this page on /xbackbone/home
from xbackbone.
Please check that htaccess file and mod rewrite is actually enabled on your system, and file permissions are set correctly.
from xbackbone.
a2enmod rewrite
returns Module rewrite already enabled
and I have set chmod -R 777 /var/www/xbackbone
. Still get the same result.
I don't know what else I can do.
from xbackbone.
Check that the base url in the config its correct, and also check the file .htaccess is loaded by apache.
from xbackbone.
I have verified both the htaccess and config file and it does not change anything. Is there anything else xbackbone relies on?
If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.
from xbackbone.
I am also facing the same issue. Tried everything you said @sergix44 the issue still persists
from xbackbone.
I am also facing the same issue. Tried everything you said @sergix44 the issue still persists
If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.
Can you post the Apache error.log?
If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.
All the css/js assets are in the default /static
folder, please check that this folder is readable and accessible by the web server.
from xbackbone.
I am also facing the same issue. Tried everything you said @sergix44 the issue still persists
If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.
Can you post the Apache error.log?
If it helps to know, I can interact with some/most href on the page, but no js or css is loaded.
All the css/js assets are in the default
/static
folder, please check that this folder is readable and accessible by the web server.
[Fri Mar 29 17:02:31.792912 2019] [mpm_event:notice] [pid 13784:tid 139815335839616] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:02:31.793095 2019] [core:notice] [pid 13784:tid 139815335839616] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:04:40.191434 2019] [mpm_event:notice] [pid 13784:tid 139815335839616] AH00491: caught SIGTERM, shutting down
[Fri Mar 29 17:04:41.347655 2019] [mpm_prefork:notice] [pid 22167] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:04:41.348655 2019] [core:notice] [pid 22167] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:04:42.934295 2019] [mpm_prefork:notice] [pid 22167] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:04:43.151105 2019] [mpm_prefork:notice] [pid 22269] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:04:43.151205 2019] [core:notice] [pid 22269] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:06:50.575698 2019] [mpm_prefork:notice] [pid 22269] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:06:51.776099 2019] [mpm_prefork:notice] [pid 27048] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:06:51.776205 2019] [core:notice] [pid 27048] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 17:09:44.549249 2019] [mpm_prefork:notice] [pid 27048] AH00169: caught SIGTERM, shutting down
[Fri Mar 29 17:09:45.773598 2019] [mpm_prefork:notice] [pid 27181] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Mar 29 17:09:45.773699 2019] [core:notice] [pid 27181] AH00094: Command line: '/usr/sbin/apache2'
These are my logs when I go onto the URL, however when I remove /home (which it automatically goes to) and I do /index.php I get the login page
from xbackbone.
I found the problem on my side. I checked the apache error log, there were no xbackbone related errors. But when I checked the access.log I noticed that all the assets were returning a 404 because it's looking in the wrong folder. Below is a redacted log (xxx.xxx is my domain).
[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/ HTTP/1.1" 302 3297 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/home HTTP/1.1" 200 1990 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 457 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
[29/Mar/2019:17:44:25 +0100] "GET /static/jquery/jquery.min.js HTTP/1.1" 404 446 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
As you can see the home folder is correctly GET from /xbackbone/home. But the static folder is GET from /static/ instead of /xbackbone/static!
So when I change the base url in the config to https://xxx.xxx/xbackbone instead of https://xxx.xxx it works.
But now all the href in the page link to e.g. https://xxx.xxx/xbackbone/xbackbone/users. Also https://xxx.xxx/xbackbone redirects to https://xxx.xxx/xbackbone/xbackbone/home now.
I don't know why this is happening but I'm sure you know given this info.
from xbackbone.
I found the problem on my side. I checked the apache error log, there were no xbackbone related errors. But when I checked the access.log I noticed that all the assets were returning a 404 because it's looking in the wrong folder. Below is a redacted log (xxx.xxx is my domain).
[29/Mar/2019:17:44:25 +0100] "GET /xbackbone/ HTTP/1.1" 302 3297 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0" [29/Mar/2019:17:44:25 +0100] "GET /xbackbone/home HTTP/1.1" 200 1990 "-" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0" [29/Mar/2019:17:44:25 +0100] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 457 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0" [29/Mar/2019:17:44:25 +0100] "GET /static/jquery/jquery.min.js HTTP/1.1" 404 446 "https://xxx.xxx/xbackbone/home" "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
As you can see the home folder is correctly GET from /xbackbone/home. But the static folder is GET from /static/ instead of /xbackbone/static!
So when I change the base url in the config to https://xxx.xxx/xbackbone instead of https://xxx.xxx it works.
But now all the href in the page link to e.g. https://xxx.xxx/xbackbone/xbackbone/users. Also https://xxx.xxx/xbackbone redirects to https://xxx.xxx/xbackbone/xbackbone/home now.
I don't know why this is happening but I'm sure you know given this info.
Assuming that your document root is /var/www/
, and you have xbackbone installed in the /xyz
sub folder (abs: /var/www/xyz/
), the base_url
to be inserted in the config file will be accordingly https://xxx.xxx/xyz
(no trailing slash).
I'm not sure how this could influence apache because I don't know if you have other directives in your apache.conf, but if it's generally configured to AllowOverride All
, it should get the xbackbone's .htaccess without issues.
Can you try the installation from scratch, checking that apache is configured to read the correct folders?
from xbackbone.
Assuming that your document root is
/var/www/
, and you have xbackbone installed in the/xyz
sub folder (abs:/var/www/xyz/
), thebase_url
to be inserted in the config file will be accordinglyhttps://xxx.xxx/xyz
(no trailing slash).
This was not at all apparent from the installation guide and may have been the source of this entire issue. I will try a complete reinstall knowing this and report back here.
from xbackbone.
Closed for inactivity. Feel free to reopen this issue if needed.
from xbackbone.
I have this issue still and setting it with the full path does not help.
Here
'base_url' => 'https://DOMAIN/sharex
Sends me to
https://DOMAIN/sharex/sharex/home
Anything else I could try? I have apll the apache stuff installed and set properly
from xbackbone.
Related Issues (20)
- Large files cannot be uploaded HOT 2
- Password Recovery/Reset
- Include QR Code to dashboard HOT 1
- Return 413 error on upload
- [Feature Request] Google Drive backend supoort
- Failed to upload a large file
- Didn't redirect after login HOT 2
- Got broken after installed HOT 2
- LDAP login broken with php8.1+ HOT 1
- [Feature request] Client configuration for "HTTP Shortcuts" android app HOT 1
- File stored in S3-compatible storage can't be download or viewed in PHP 8.2 HOT 2
- discord embed meta tags
- storage_path change user code?
- Discord embed customisation from the panel for every user or site wide HOT 1
- Flameshot support HOT 1
- Add spectacle support HOT 2
- Cannot view s3 uploads /raw, thumbnails fine and local storage fine HOT 4
- Is backend for local storage compatible with pre-existing file tree?
- Chunked (< 100MB) Upload for Cloudflare HOT 1
- Ability to add tags via POST URL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbackbone.