Excellent! Bookmarked and looking forward to future posts!
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
Nice
I am new user of nginx. Could you please provide me some good resource to learn rewrite rule of nginx, @bashy?
Looks slick. Nice job. Don't use Nginx. Need to go read up on it.
Thanks all
@milon what sort of rewrites? I'd be happy to help if I can.
@bashy I also made a blog in Laravel last week but mainly a place to write about shit, projects and to thank other devs
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.
Thanks for this. Bookmarked :)
Didn't expect this many responses!
@milon Yeah, well I guess there's a few different types like
- Rewrites from old links to new
- Rewrite from old domain to new
- Rewrite certain locations (/blog)
Example, rewrite old link to new
rewrite ^/products/all.php$ /products permanent;
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html
@lstables yeah I saw you tweeted that :) good job
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!
Thanks @bashy. I will read the docs of nginx. And I will disturb you time to time for this. please don't mind. :)
@milon That's perfectly fine :) happy Nginxing!
Many thanks @bashy, bookmarked!!
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!
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.
@bashy yeah that would be good to see specially "local" enviroments using Vagrant too would be awesome, there's not enough of that stuff.
Updated with two more posts about Nginx and security. https://bashy.im/blog
Interesting blog! I'll keep an eye out for new blog posts to learn something about this Nginx thing.
@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. ♥
Thanks! Suggestions and ideas for posts are all welcome. I did want to do an RSS feed, I'll try get that done soon!
Hi @bashy,
I thinks would be very useful for all developers get knowledge about:
Nginx configuration for Beginners and differences with Apache (I think many people come from Apache) or a serie of posts about Beginners to Advanced.
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.
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)
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?
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)
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 !
An article about setting up a content security policy in Nginx would be nice.
@codeatbusiness @vincej We talking sub domain or whole domain? I have a few ideas but vastly change depending on the setup.
@rieves For that, depends what you want to allow. Something simple like this;
# Allow script and img from Analytics
add_header X-Content-Security-Policy "default-src 'self'; \
script-src 'self' https://ssl.google-analytics.com; \
img-src 'self' https://ssl.google-analytics.com";
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 , ...
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.
@bashy looks like all inbound links from here might have crashed your site.
Please or to participate in this conversation.