Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bashy's avatar
Level 65

Blog posts on my personal site

So I made myself a Laravel site when I first joined Laracasts and I've just published my first post about Nginx setup for redirecting HTTP to HTTPS with/without www

You can check out the post here: https://bashy.im/blog

Hopefully I'll do more and I'll probably recode it into Laravel 5 (while doing some updates since some parts don't work).

If you have any ideas for web server setup, PHP/Nginx etc, I'll take note and try write it

0 likes
43 replies
SP1966's avatar

Excellent! Bookmarked and looking forward to future posts!

milon's avatar

I am new user of nginx. Could you please provide me some good resource to learn rewrite rule of nginx, @bashy?

nolros's avatar

Looks slick. Nice job. Don't use Nginx. Need to go read up on it.

bashy's avatar
Level 65

Thanks all

@milon what sort of rewrites? I'd be happy to help if I can.

theUnforgiven's avatar

@bashy I also made a blog in Laravel last week but mainly a place to write about shit, projects and to thank other devs

milon's avatar

Actually I just can install nginx and run laravel on it. I don't have any other knowledge on it. So, actually I don't know what to explain.

theUnforgiven's avatar

Cheers @bashy hoping looking forward to writing about my experiences with L5 too in the coming week, now I'm using it to work on a project, so watch this space!

milon's avatar

Thanks @bashy. I will read the docs of nginx. And I will disturb you time to time for this. please don't mind. :)

toniperic's avatar

You know most of us are always interested in the code and design patterns, oh, especially the patterns. Your blog isn't an exception. We crave for the code. :)

Kidding aside - best of luck with the blog, hope to see you update it every now and then. I, too, am interested in nginx more as well. Bookmarked!

bashy's avatar
Level 65

Haha, thanks :)

Hoping to do some screencasts as well. Will mainly be web server software, custom scripts with bash and setting up of dedicated servers/VPS.

theUnforgiven's avatar

@bashy yeah that would be good to see specially "local" enviroments using Vagrant too would be awesome, there's not enough of that stuff.

davorminchorov's avatar

Interesting blog! I'll keep an eye out for new blog posts to learn something about this Nginx thing.

yayuj's avatar

@bashy - Nice done m8, I'm your fan, you know that. - I will follow it happily.

Are you accepting suggestions? Yes? I will give you just one now: RSS. Thanks. ♥

bashy's avatar
Level 65

Thanks! Suggestions and ideas for posts are all welcome. I did want to do an RSS feed, I'll try get that done soon!

xingfucoder's avatar

Hi @bashy,

I thinks would be very useful for all developers get knowledge about:

  1. Nginx configuration for Beginners and differences with Apache (I think many people come from Apache) or a serie of posts about Beginners to Advanced.

  2. Multitenancy with Nginx - PHP FPM and Multiple databases.

I think it is a great resource for some beginners that they haven't a concise knowledge about servers management.

1 like
timersys's avatar

Hi @bashy, first let me thanks for the community help you do here. I think it would be great a tutorial to deply laravel in a nginx server from scracth. So people that don't want or can't pay forge know to deploy a laravel site easily. A plus will be some configurations depending on selected vps (mainly talking about dgiitalocean and linode)

bashy's avatar
Level 65

Sounds good. About multitenancy, you want to know about how to set it up for multiple sites (same user)? Or like separate each one? Maybe adding support for cache using Varnish?

@timersys No problem, thanks for the kind words! I can sort something out soon, just a normal setup of Laravel and Nginx via Git?

xingfucoder's avatar

Hi @bashy, I thought about multitenancy as SaaS for example:

Multitenants for Business Units / Departments. I think would be very useful for enterprises with several locations (physics or logics)

1 like
vincej's avatar

As a self proclaimed Laravel noob I would really appreciate that you blog about multi-tenancy as well, in the form of 1 DB with multiple companies.

Additionally - a How to set up Nginx for idiots guide :o)

You are a mega star !

1 like
rieves's avatar

An article about setting up a content security policy in Nginx would be nice.

xingfucoder's avatar

Hi @bashy, I think could be difficult get subdomain mask for each tenant, correct me if I'm wrong, but this could be a great option. All depends on the needs of the application (only some tenants, or hundred of those); the possibility of tenant rent or take dinamically, transfering them between matrix apps/organizations , ...

rieves's avatar

Sorry I didn't mean I needed help with it. I just thought it would be good for newcomers to server administration, as your doing other security topics.

Next

Please or to participate in this conversation.