[GH-ISSUE #132] Not Found #103

Closed
opened 2026-02-25 23:40:42 +03:00 by kerem · 3 comments
Owner

Originally created by @Blisk on GitHub (Sep 30, 2021).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/132

I have installed pictshare on my server all is default I can upload picture I can see it on server but when I click link I get
Not Found
The requested URL /r4mhm4.jpg was not found on this server.

I have checked apache settings 5 times and all is ok and settings are below. What can be wrong?

/**
 * All settings that are uncommented are mandatory
 * Others optional
 */

//Use a specific domain for links presented to the user
//Format: https://your.domain.name/
// MUST HAVE TAILING /
define('URL','http://pictshare.mydomain.net/');

//define('JPEG_COMPRESSION', 90);
//define('FFMPEG_BINARY','');
//define('ALT_FOLDER','/ftp/pictshare');
//define('ALLOWED_SUBNET','192.168.0.0/24');

//S3 settings
//
//define('S3_BUCKET','bucketname');
//define('S3_ACCESS_KEY','');
//define('S3_SECRET_KEY','');
//define('S3_ENDPOINT','http://localhost:9000'); //optional, only if you're using S3 compatible storage like Minio
Originally created by @Blisk on GitHub (Sep 30, 2021). Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/132 I have installed pictshare on my server all is default I can upload picture I can see it on server but when I click link I get Not Found The requested URL /r4mhm4.jpg was not found on this server. I have checked apache settings 5 times and all is ok and settings are below. What can be wrong? ``` /** * All settings that are uncommented are mandatory * Others optional */ //Use a specific domain for links presented to the user //Format: https://your.domain.name/ // MUST HAVE TAILING / define('URL','http://pictshare.mydomain.net/'); //define('JPEG_COMPRESSION', 90); //define('FFMPEG_BINARY',''); //define('ALT_FOLDER','/ftp/pictshare'); //define('ALLOWED_SUBNET','192.168.0.0/24'); //S3 settings // //define('S3_BUCKET','bucketname'); //define('S3_ACCESS_KEY',''); //define('S3_SECRET_KEY',''); //define('S3_ENDPOINT','http://localhost:9000'); //optional, only if you're using S3 compatible storage like Minio ```
kerem closed this issue 2026-02-25 23:40:42 +03:00
Author
Owner

@geek-at commented on GitHub (Oct 1, 2021):

can you show me your .htaccess and apache vhost config?

<!-- gh-comment-id:932039283 --> @geek-at commented on GitHub (Oct 1, 2021): can you show me your .htaccess and apache vhost config?
Author
Owner

@Blisk commented on GitHub (Oct 1, 2021):

.httaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [QSA,PT,L]

and vhost config
<VirtualHost *:80>
DocumentRoot /var/www/pictshare/
ServerName photobin.mydomain.net
#ServerAlias photobin.mydomain.net
ServerPath /var/www/pictshare

ErrorLog "logs/pictshare.mydomain.net.error_log"
CustomLog "logs/pictshare.mydomain.net.access_log" combined

<Directory "/var/www/pictshare">
Order allow,deny
Allow from all

Alias /pictshare "/var/www/pictshare"
<Directory "/var/www/pictshare">

<!-- gh-comment-id:932091475 --> @Blisk commented on GitHub (Oct 1, 2021): .httaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 [QSA,PT,L] </IfModule> and vhost config <VirtualHost *:80> DocumentRoot /var/www/pictshare/ ServerName photobin.mydomain.net #ServerAlias photobin.mydomain.net ServerPath /var/www/pictshare ErrorLog "logs/pictshare.mydomain.net.error_log" CustomLog "logs/pictshare.mydomain.net.access_log" combined <Directory "/var/www/pictshare"> Order allow,deny Allow from all </Directory> Alias /pictshare "/var/www/pictshare" <Directory "/var/www/pictshare"> </Directory> </VirtualHost>
Author
Owner

@geek-at commented on GitHub (Nov 24, 2021):

rewrite looks ok but it's probably easier for you to use the docker container

<!-- gh-comment-id:978353510 --> @geek-at commented on GitHub (Nov 24, 2021): rewrite looks ok but it's probably easier for you to use the docker container
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#103
No description provided.