Changes between Version 19 and Version 20 of Csle2022/Agenda/databaseandweb


Ignore:
Timestamp:
Nov 30, 2022, 6:04:09 AM (2 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/databaseandweb

    v19 v20  
    226226Receiving domains costs or need the approval from the System Administrator. Hence, for this workshop we can use hosts file in your computer operating system to create any arbitrary domain for your self. Hosts file will override any public DNS but only for your own computer.
    227227
     228== Add domains to the hosts file in Windows ==
     229
     230To add domains to the hosts file in Windows please Run the Notepad as the Adminitrator as below.
     231
     232[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/databaseandweb/web29.png)]]
     233
     234Then go to /Windows/System32/drivers/etc directory. If you cannot view hosts file please select All Files from the drop down list at bottom. Now open hosts file.
     235
     236[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/databaseandweb/web30.png)]]
     237
     238Now as below edit the hosts file and add you domains with the IP address of your guest VM.
     239
     240[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/databaseandweb/web31.png)]]
     241
     242== Add domains to the hosts file in Linux ==
     243
    228244To add domains to the hosts file edit the hosts file as below.
    229245
     
    234250127.0.0.1 localhost
    235251127.0.1.1 web
    236 192.248.4.70 web.your_domain.com
    237 192.248.4.70 wp.your_domain.com
    238 192.248.4.70 lms.your_domain.com
    239 192.248.4.70 xy.your_2nd_domain.com
     25210.1.1.240 web.your_domain.com
     25310.1.1.240 wp.your_domain.com
     25410.1.1.240 lms.your_domain.com
     25510.1.1.240 xy.your_2nd_domain.com
    240256}}}
    241257