Skip to content

Instantly share code, notes, and snippets.

@slow-is-fast
slow-is-fast / laravel remove index.php from url.md
Last active April 16, 2024 14:05
[nginx] laravel remove index.php from url
# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
    return 301 $1;
}

location / {
    try_files $uri $uri/ /index.php?$query_string;

    # Remove from everywhere index.php

if ($request_uri ~* "^(./)index.php(/?)(.)") {

@bidhanahdib
bidhanahdib / mysql-phpmyadmin.yml
Last active April 19, 2022 01:49
Docker composer file for mysql and phpmyadmin
version: '3.2'
services:
db:
image: mysql:8.0
container_name: appsDB
restart: always
ports:
- '6603:3306'
environment:
@bidhanahdib
bidhanahdib / create_user_playbook.yaml
Last active June 29, 2021 09:30
Ansible Playbook - Playbook to deploy user and their SSH Public Key
---
- name: Create New User
hosts: all
become: true
gather_facts: false
vars:
# Define your username and password here that you want to create on target hosts.
username: newuser
userpass: user_password
tasks: