vinkla / wordplate

A boilerplate for WordPress, built with Composer and designed with sensible defaults.
2.11k stars 155 forks source link

Add SSL and VHost to php -S #208

Closed hocine87 closed 6 years ago

hocine87 commented 6 years ago

Hello,

I just started using Wordplate. However when using an internal php server I find myself blocked. I would like to create a Vhost with an https / ssl. I already added my vhost in the files hosts etc.

I would like what was the procedure to follow for this, I have already searched in the existing issues as well as on the documentation, without success.

Or if there is an alerniatve to the use of an internal php server.

Waiting for an answer.

vinkla commented 6 years ago

If you're running macOS I would suggest you take a look at Laravel Valet which has support for SSL certificates built-in. If I remember correctly there should be alternatives for Windows.

hocine87 commented 6 years ago

Ok, thanks.

When my Valet is configured must I still php -S locahost:8000 -t public ?

Because i have a blank page when Valet running in "public" folder.

hocine87 commented 6 years ago

Update : When I go to my Valet I get this.

vinkla commented 6 years ago

Try using the local driver for WordPlate. Currently writing this on a mobile. You’ll find it in the documentation. If you change the WordPress path you might need to update the driver as well.

hocine87 commented 6 years ago

Ok, so now i have a "ERR_TOO_MANY_REDIRECTS" error.

I don't if this error provide to Valet or Wordplate.

I think it's a WP SITE URL but i'm not sure ?

hocine87 commented 6 years ago

I have already add the file into the project folder

https://github.com/wordplate/valet but nothin happend

hocine87 commented 6 years ago

I also add LocalValetDriver to /Valet/Drivers folder and i have always error.

ERR_TOO_MANY_REDIRECTS

vinkla commented 6 years ago

When my Valet is configured must I still php -S locahost:8000 -t public?

No, this is no longer necessary if you use Valet.

I also add LocalValetDriver to /Valet/Drivers folder and i have always error.

Did you update the WordPress path within the Valet driver?

hocine87 commented 6 years ago

I don't understand what is the the $uri,` '/wordpress/')

If on my mac my project is in /Users/Me/Project/WordplateFolder/

I must type this path ?

vinkla commented 6 years ago

I don't understand what is the the $uri,` '/wordpress/')

From your screenshot I can see that the path is wp. Anywhere in the Valet driver where it says wordpress you need to change to wp. It should point to the location of the wordpress directory.

hocine87 commented 6 years ago

Now this the default path.

But with the default uri doesn't work. I have always the error.

vinkla commented 6 years ago

In your previous screenshot the WordPress directory seems to be called wp. You'll need to visit /wordpress/wp-admin/install.php in order to install WordPress with WordPlate.

hocine87 commented 6 years ago

Work with /wordpress in chrome but I want the wordpress address to point in / and not in the subfolder address

vinkla commented 6 years ago

Work with /wordpress in chrome...

Great! I'll go ahead and close this issue.

...but I want the wordpress address to point in / and not in the subfolder address

This is the expected behaviour with WordPlate. It isn't really an issue since this will only affect the administrators of your website. The users will still visit the page on the root domain.

hocine87 commented 6 years ago

Hi, after a reboot when i access to my domain chrome return ERR_CONNECTION_TIMED_OUT