Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
league /
glide /
docs /
0.3 /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
base-url.md
1005
B
-rw-r--r--
2020-11-05 09:00
basic-usage.md
1.47
KB
-rw-r--r--
2020-11-05 09:00
image-driver.md
406
B
-rw-r--r--
2020-11-05 09:00
max-image-size.md
621
B
-rw-r--r--
2020-11-05 09:00
secure-images.md
1.5
KB
-rw-r--r--
2020-11-05 09:00
source-and-cache.md
1.79
KB
-rw-r--r--
2020-11-05 09:00
the-server.md
2.03
KB
-rw-r--r--
2020-11-05 09:00
Save
Rename
--- layout: default title: Base URL --- # Base URL It's common to route all images under the path `/img/`. However, since Glide maps image request paths directly to the image source paths, you would have to have an `/img/` folder in your source location as well. For example: ~~~ js 'http://example.com/img/kayaks.jpg' => '/path/to/source/img/kayaks.jpg' 'http://example.com/img/users/jonathan.jpg' => '/path/to/source/img/users/jonathan.jpg' ~~~ Since this isn't ideal, Glide allows you to define a `base_url` which is omitted from the source path. ## Set the base URL ~~~ php <?php // Set using factory $server = League\Glide\ServerFactory::create([ 'base_url' => '/img/', ]); // Set using setter method $server->setBaseUrl('/img/'); ~~~ With the base URL configured, the new image source paths will no longer include `/img/`. ~~~ js 'http://example.com/img/kayaks.jpg' => '/path/to/source/kayaks.jpg' 'http://example.com/img/users/jonathan.jpg' => '/path/to/source/users/jonathan.jpg' ~~~