An open API service indexing awesome lists of open source software.

https://github.com/atomjoy/xampp

Xampp virtualhosts for your domain or subdomain with SSL on Apache2 and Laravel.
https://github.com/atomjoy/xampp

domain-xampp ssl-xampp xampp-custom-domain xampp-domain xampp-server xampp-ssl xampp-vhost xampp-virtualhost xampp-windows

Last synced: 7 days ago
JSON representation

Xampp virtualhosts for your domain or subdomain with SSL on Apache2 and Laravel.

Awesome Lists containing this project

README

          

# 🚀 Xampp local domains with SSL

Xampp virtual hosts for your domain or subdomain with SSL on Apache2 and Laravel.

## Windows add local host for app.test domain

Open file as administrator **C:\Windows\System32\drivers\etc\hosts** and append hosts

```sh
# Local domain
127.0.0.10 app.test www.app.test

# Next domain
# 127.0.0.11 example.com www.example.com
```

## Create directory for domain and index.php file

```sh
# Domain dirs
D:/web/localhost
D:/web/app.test/public

# Apache index.php file with
#
DocumentRoot "D:/web/app.test/public"
DirectoryIndex index.php
ServerName app.test
ServerAlias www.app.test

ErrorLog "D:/web/app.test/storage/logs/app.test.error.log"
CustomLog "D:/web/app.test/storage/logs/app.test.access.log" common

# Redirect to https
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{SERVER_NAME}$1 [R,L]


Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted

DocumentRoot "D:/web/app.test/public"
ServerName app.test
ServerAlias www.app.test

SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"


Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted

```

## Restart Apache and browser

Restart Xampp Apache server from xampp panel or restart Windows.

## Run xampp server and website

Accept invalid SSL for domain in (advanced button).

## Testing

Change app.test to a domain with dns mx records (for email testing in Laravel: app.test).