Viewing html file on local network - windows

As title says, I have html file, which I would like to allow access with some IPs on my Wi-Fi.
I changed my hosts file.
192.168.0.162 Ntb
I also needed to add exception to firewall.
Now I can ping this IP.
But how can I show this user with this IP adress my html file?
Which is located:
C:\Users\patri\Desktop\bc4\f_end\login.html
Thank you for your help

Related

Set up URL redirect for a localhost site

I've developed a small site for an academic project, and I'd like to have it being shown as a live site, with its own domain name.
For example: I want to enter the domain name JustAnExample.com, but it should access the localhost.
I've tried to change the Hosts file, but it didn't work.
Changing the Hosts file should work!
adding > 127.0.0.1 justanexample.com <
will redirect it to localhost.
this may help! Editing local host file

Can't access htdocs with static IP address from browser

I created a Joomla instance using Lightsail. Using FileZilla I transferred my html files in /opt/bitnami/apache2/htdocs.
However when I enter my static IP address in my browser I always end up on this home page.
And if I try to redirect towards a file in my htdoc I end up on this one.
What am I doing wrong?
FIXED:
So it appears the directory I was using wasn't the right one.
You need to use: /opt/bitnami/apps/joomla/htdocs.

codeigniter accessing through IP address in subfolder

I have a backoffice module in codeigniter. ive uploaded it to a.setver.into backoffice/ folder. the server can be accessed only by IP address like http:// IP ADDRESS /~user/backoffice/ but its not working.
ive uploaded it onto another server which can be accesses like www.domainname.com/backoffice/ and it works fine there.
i have to make it work on the first server without editing the hosts file.
i guess there must be a problem with segments order in the urls.
I opened the error log which sais file not found usr/local/apache/htdocs/home .
the home is the default controller.
the config bse url is set fine.

Hosts file Redirect website to about:blank

I was just curious, how do I redirect a webaddress to a blank page using the windows Hosts file? All I know now is this 127.0.0.1 googleads.g.doubleclick.net. So how do I redirect the address to a Blank page?
thanks
You can't.
The HOSTS file assists in name resolution—converting a hostname to an IP address.
about:blank is a special URI that has nothing to do with name resolution.
You could run a webserver that sends 301 redirects to about:blank (or just sends blank pages), then add that server's IP address to the HOSTS file.

How to configure IIS to host multiple websites?

Suppose there are a.com,b.com,how to host them both with the same IIS?
EDIT
It's not hello.domain.com and goodbye.domain.com,but two totally different domain names
You should look at creating multiple websites and using different host headers. Note if you are developing on Windows XP then you can only host 1 website (without using a tool downloaded from the internet).
Refer to these articles:
http://support.microsoft.com/kb/190008
http://www.visualwin.com/host-header/
Note: This question is better asked at ServerFault.com :)
Define multiple "Web sites" (as much as desired amount of virtual hosts), then for each web site, right click > properties > "web site" tab > "Advanced" button on "IP adress" row and there define your virtual hosts in "Host header value" field
i'm going completely off of memory. but what Oliver means (i believe). is in IIS. you click to create new website. name it whatever you want. in the properties section you will want to click on the tab that will show host names. Probably will also show text for multiple identies. leave IP address as all unassigned. and put in the domain name you want to answer. this can be my.domain.com or just domain.com or domain.local or whatever.
Do that for each website. Also in the properties you will need to select the domain's source files (which point to directories on the server's harddrives).
example for older iss 4 and 5
I solved issue. I just updated my server IP in Domain Name registered site (it will take some time for reflecting depend on your operator).
In IIS expand top menu then in site go to default site
right click on default site go to edit Binding then edit port.
Add any other port than default (8080) save
In IIS expand top menu then right click on site then click on add website.
Give name to website select default app pool pass physical path of application then below in binding select HTTP protocol in IP field set default All Unassigned in port add default port (must be 80) in host name add host name.
restart website and browse

Resources