# Using HTTPS on yours site

**Symptom:** When visiting your site with HTTPS, images within Voyager fail to load.

**Cause:** Images urls are generated by Voyager using

```php
Storage::disk(config('voyager.storage.disk'))->url($file);
```

If voyager.storage.disk is set to public, and the public disk is the default from Laravel, then the url property in the disk configuration is set to

```php
'url' => env('APP_URL').'/storage',
```

which uses the non-HTTPS APP\_URL value to build an absolute url to the image.

**Solution:** If you remove env('APP\_URL'). from the public disk configuration, then it will render a domain-relative url, which will always use the current domain and protocol.

As an aside, if you need a fully-qualified URL, you could wrap the call to `Voyager::image('...')` with `asset()`, so it would be

```php
asset(Voyager::image('...'))
```

This will return the current protocol, domain, and correct path to that image.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://voyager-docs.devdojo.com/1.3/troubleshooting/using-https.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
