Skip to content

Commit 8af7dc4

Browse files
authored
Merge pull request #333 from vovsky/getting-started-nginx-config
Added Nginx specific settings to getting started doc
2 parents c9dd418 + 304b7ea commit 8af7dc4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/getting-started.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ To enable the **Admin Account Sharing** setting, to avoid unpredictable logout d
8080
3. Set **Add Secret Key to URLs** to **No**.
8181
4. Click **Save Config**.
8282

83+
### Nginx settings {#nginx-settings}
84+
85+
If Nginx Web server is used on your development environment then **Use Web Server Rewrites** setting in **Stores \> Configuration \> Web \> Search Engine Optimization** must be set to **Yes**.
86+
87+
To be able to run Magento command line commands in tests add the following location block to Nginx configuration file:
88+
89+
```conf
90+
location ~* ^/dev/tests/acceptance/utils($|/) {
91+
root $MAGE_ROOT;
92+
location ~ ^/dev/tests/acceptance/utils/command.php {
93+
fastcgi_pass fastcgi_backend;
94+
fastcgi_index index.php;
95+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
96+
include fastcgi_params;
97+
}
98+
}
99+
```
83100
## Set up an embedded MFTF {#setup-framework}
84101

85102
This is a default setup that you would need to start using the MFTF to cover your Magento project with functional testing.

0 commit comments

Comments
 (0)