
نوشته اصلی توسط
espad
دوستان ممنون
من با استفاده از wamp اسکریپت رو روی سرور run کردم الان چطوری باید به اون اسکریپت از طریق شبکه داخلی سازمان دسترسی داشته باشم ؟
127.0.0.1
localhost
یا از هر آی پی دیگه که در httpd-vhost.conf میتونی ببینیش یا حتی تعریف کنی براش
از سرچ گوگل گرفتم (چرخ رو دوباره اختراع نمیکنم دی

Scroll down to tools section and click Add a Virtual Host.

- Provide domain name.
- Provide an absolute path for the folder which has WordPress.
- You can also give a unique IP.
Before setting this up, place WordPress into a new folder
I will create a folder inside downloads/mysites/traveldiary
Copy the path paste to virtual host setup. Now I am pointing my virtual host to the folder that contains my WordPress site.

Click on start creating a virtual host

To access, we have to restart DNS server under WAMP
Go to system tray click green WAMP icon right click on it-> go to tools -> restart DNS

This will restart the domain name server that is running inside WAMP. Now copy the domain name and paste that into a browser.
Recheck your virtual host
Go to wamp icon -> click -> Your virtual host
Managing Virtual \host:
If you want to edit or delete virtual host?
When you see virtual host there is no way to actually delete it. The best way to delete virtual host is to go to a configuration file that sets up a virtual host.
For configuration file go to localhost on URL -> goto add a virtual host

At the top, you will see apache virtual host path copy that path and goto that folder
F:\wamp64\bin\apache\apache2.4.27\conf\extra
Open file httpd-vhosts.conf

You will see the configuration for myfirstweb.dev if you delete this part and restart your DNS you will get rid of unwanted virtual host setup
Note: you cannot rename the virtual host from here. If you do so will break down everything. If you want to rename just remove and create again.
- - - Updated - - -
یک چیز که کم داره
اگر مثلا آدرس دامنه ای از خودت در میاری و میزنی باید در مسیر زیر هم تعریفش کنی
کد HTML:
C:\Windows\System32\drivers\etc\host
مطابق عکس زیر:
ostss.png