Ecosyste.ms: Awesome
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: about 2 months ago
JSON representation
Xampp virtualhosts for your domain or subdomain with SSL on Apache2 and Laravel.
- Host: GitHub
- URL: https://github.com/atomjoy/xampp
- Owner: atomjoy
- Created: 2023-06-10T12:58:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-04T18:11:39.000Z (7 months ago)
- Last Synced: 2024-06-05T20:15:25.597Z (7 months ago)
- Topics: domain-xampp, ssl-xampp, xampp-custom-domain, xampp-domain, xampp-server, xampp-ssl, xampp-vhost, xampp-virtualhost, xampp-windows
- Language: PHP
- Homepage: https://github.com/atomjoy/xampp
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.orgErrorLog "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.orgSSLEngine 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).