3

So I am working on Laravel/Valet, I was trying to use ssl. So I ran:

valet secure examplesite 

This did not work. I have uninstalled valet, cleared cache, remove laravel/valet. Nothing worked. I just could not open the https://examplesite.test site. However, the non-secure http site is working fine.

Question 1: How can I get this to work? I am on MAC OS Sierra.

Question 2: Even after removing nginx and valet, I am still seeing something like the image shown like this image when I load the page. Where is the information about the server nginx coming from?

Thank you very much.

Olu Adeyemo
  • 825
  • 9
  • 17
  • Did you restart your pc? I faced this type of problem. But after restart pc Its works. Before doing this, check valet status and check ngnix configuration again. – Jahirul Islam Mamun Oct 05 '19 at 19:28
  • Of course, restarting the pc may work. But you don't have to. You can just restart the Nginx server. – Olu Adeyemo Oct 05 '19 at 19:38

2 Answers2

7

So after running valet secure in the same directory of the web project;

I ran the code below:

    sudo nginx -s stop && sudo nginx
Olu Adeyemo
  • 825
  • 9
  • 17
  • I tried all kind of valet commands, reinstalls, re-links, re-secures... and nothing worked. But just running nginx as sudo did the trick! – Jk33 Jan 14 '21 at 01:47
0

For Windows 10 users:

Step 1: Open cmd in administrator (sudo equivalent of linux)

Step 2: valet stop if valet is already running

Step 3: cd into your project directory (this is the most important step)

Step 4: valet secure

Step 5: valet start

Viraj Singh
  • 1,951
  • 1
  • 17
  • 27