Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SSL and VHost to php -S #208

Closed
hocine87 opened this issue Jul 31, 2018 · 15 comments
Closed

Add SSL and VHost to php -S #208

hocine87 opened this issue Jul 31, 2018 · 15 comments
Labels

Comments

@hocine87
Copy link

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
Copy link
Owner

vinkla commented Jul 31, 2018

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
Copy link
Author

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
Copy link
Author

hocine87 commented Jul 31, 2018

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

@vinkla
Copy link
Owner

vinkla commented Jul 31, 2018

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
Copy link
Author

hocine87 commented Jul 31, 2018

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
Copy link
Author

I have already add the file into the project folder

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

@hocine87
Copy link
Author

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

ERR_TOO_MANY_REDIRECTS

@vinkla
Copy link
Owner

vinkla commented Aug 1, 2018

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
Copy link
Author

hocine87 commented Aug 1, 2018

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
Copy link
Owner

vinkla commented Aug 1, 2018

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
Copy link
Author

hocine87 commented Aug 1, 2018

Now this the default path.

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

@vinkla
Copy link
Owner

vinkla commented Aug 1, 2018

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
Copy link
Author

hocine87 commented Aug 1, 2018

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

@vinkla
Copy link
Owner

vinkla commented Aug 1, 2018

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.

@vinkla vinkla closed this as completed Aug 1, 2018
@hocine87
Copy link
Author

hocine87 commented Aug 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants