Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# How to add a domain in Xampp with SSL on localhost

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

## Windows add local host for example.org domain

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

```sh
# Local domains and localhost
127.0.0.10 db.xx www.db.xx
127.0.0.11 example.org www.example.org
```

## Create directory for domain and index.php file

```sh
# Domain dirs
D:/www/localhost
D:/www/db.xx/public
D:/www/example.org/public

# Apache index.php file with
#
DocumentRoot "D:/www/example.org/public"
DirectoryIndex index.php
ServerName example.org
ServerAlias www.example.org

ErrorLog "D:/www/example.org/storage/logs/example.org.error.log"
CustomLog "D:/www/example.org/storage/logs/example.org.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:/www/example.org/public"
ServerName example.org
ServerAlias www.example.org

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

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 example.org to a domain with dns mx records (for email testing in Laravel: app.xxx).