Skip to content

Commit

Permalink
Fixed multi-website default Apache configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
glo47154 committed May 9, 2023
1 parent 243e0a6 commit 9fecf52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ You can download archive of this project on [Release Page](https://github.com/yv
- Mailcatcher: latest
- Selenium: 3.14.0

### Domains
With the default setup, Magento2Docker will use nip.io in this way:
`http://{LEVEL_2}.{LEVEL_1}.127.0.0.1.nip.io`
where:
- LEVEL_1 is a name of a folder inside /var/www/html
- LEVEL_2 is a subdomain that can be used to simulate multi-website Magento setup

Assume you have a multi-website Magento setup in the m246 folder; your domains can look like this:
- http://m246.127.0.0.1.nip.io
- http://website1.m246.127.0.0.1.nip.io
- http://website2.m246.127.0.0.1.nip.io
All the above will point to /var/www/html/m246 in your container.


## Usage
To work with Magento2Docker you can use `m2d` CLI command located in `bin` of Magento2Docker project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ UseCanonicalName Off
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerAlias *.*.127.0.0.1.nip.io
VirtualDocumentRoot /var/www/html/%1/%2
VirtualDocumentRoot /var/www/html/%2
<Directory //>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Expand Down

0 comments on commit 9fecf52

Please sign in to comment.