Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating local domains. #18

Open
matveyb9 opened this issue Aug 21, 2024 · 2 comments
Open

Creating local domains. #18

matveyb9 opened this issue Aug 21, 2024 · 2 comments

Comments

@matveyb9
Copy link

Hello, dear developers. Please tell me how to create a local domain, for example site.local.

@armandwipangestu
Copy link
Member

armandwipangestu commented Aug 21, 2024

You need to have a DNS and then create a Virtual Host on the web server. For example, I'm using Laragon in my Windows operating system. They work with creating a domain name at /etc/hosts (this is a local domain on your system)

image

and then creating a Virtual Host that mapping the local domain to the correct php location (in this I'm using a Nginx web server)

image

NOTE: Here an example if creating a Virtual Host using Apache as Web Server
image

But now the problem is how android / termux can edit the /etc/hosts. I don't know what if you make a DNS Server and then create an A record that pointing to the IP Address of your phone, then create a Virtual Host at the web server for the mapping to the correct php location

@matveyb9
Copy link
Author

Please tell me how to create a virtual domain in Termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants