snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Change host name

Open Sharoni-il opened this issue 9 years ago • 5 comments

Hello SnipeIT support After install snipe with the script on ubuntu server i'v changed the host name manually , for some pages its ok but still if i press for example on SNIPEIT logo or username i'm getting the old host name on the URL bar and page error "This site can’t be reached", i couldnt find which files can i change the host name inside the snipeit folders, is it possible? Thanks in advance (great software) Sharoni

Sharoni-il avatar May 09 '17 12:05 Sharoni-il

https://snipe-it.readme.io/docs/configuration#section-required-basic-app-settings

APP_URL

snipe avatar May 09 '17 13:05 snipe

Hi snipe and thanks for answer, still have the same problem, i'v attached screenshot of the error i have if it is possible for you to inspect

thanks!

snipeiterror

Sharoni-il avatar May 10 '17 15:05 Sharoni-il

That uses the APP_URL in your .env:

@if ($snipeSettings->brand == '3')
    <a class="logo navbar-brand no-hover" href="{{ config('app.url') }}">
        <img class="navbar-brand-img" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
        {{ $snipeSettings->site_name }}
    </a>
@elseif ($snipeSettings->brand == '2')
    <a class="logo navbar-brand no-hover" href="{{ config('app.url') }}">
        <img class="navbar-brand-img" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
    </a>
@else
    <a class="logo no-hover" href="{{ config('app.url') }}">
        {{ $snipeSettings->site_name }}
    </a>
@endif

Try clearing your config cache, and deleting cached views:

php artisan view:clear
php artisan config:clear

snipe avatar May 10 '17 18:05 snipe

very weird problem, i'v changed the host name in every file i can think of inside the snipeit and apache2 folders but with no success, i gave up and reinstall, thanks for help!

Sharoni-il avatar May 14 '17 10:05 Sharoni-il

Your fix might be here: https://github.com/snipe/snipe-it/issues/4530#issuecomment-584852623

regjonh avatar Feb 11 '20 21:02 regjonh