Changes between Version 19 and Version 20 of Csle2022/Agenda/databaseandweb
- Timestamp:
- Nov 30, 2022, 6:04:09 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/databaseandweb
v19 v20 226 226 Receiving 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. 227 227 228 == Add domains to the hosts file in Windows == 229 230 To 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 234 Then 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 238 Now 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 228 244 To add domains to the hosts file edit the hosts file as below. 229 245 … … 234 250 127.0.0.1 localhost 235 251 127.0.1.1 web 236 1 92.248.4.70 web.your_domain.com237 1 92.248.4.70 wp.your_domain.com238 1 92.248.4.70 lms.your_domain.com239 1 92.248.4.70 xy.your_2nd_domain.com252 10.1.1.240 web.your_domain.com 253 10.1.1.240 wp.your_domain.com 254 10.1.1.240 lms.your_domain.com 255 10.1.1.240 xy.your_2nd_domain.com 240 256 }}} 241 257