Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Possible to specify access to site by ip address?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Supress directory listings.  
Author Message
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 1) Posted: Tue Nov 25, 2003 10:30 pm
Post subject: Possible to specify access to site by ip address?
Archived from groups: alt>apache>configuration (more info?)

Im running apache with multiple sites
I have one particular website which is currently a 'work in progress' and i
only want to allow
access to it only by ip address so I can just allow 2 or three people to
look at it.
Is it possible to edit the below code to do this?
TIA


<VirtualHost *>
ServerAdmin webmaster.RemoveThis@xxx.co.uk
DocumentRoot /usr/home/xxx
ServerName www.xxx.co.uk
ErrorLog logs/xxx.co.uk-error_log
CustomLog logs/xxx.co.uk-access.log "combined"
scriptalias /cgi-bin/ /usr/home/xxx/cgi-bin/
DirectoryIndex index.htm index.html index.php
</VirtualHost>

 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Tue Nov 25, 2003 11:14 pm
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike <me.RemoveThis@privacy.net> wrote:
 > access to it only by ip address so I can just allow 2 or three people to
 > look at it.

If you use ServerName and the IP address, it will do, otherwise you can
turn the table and use Allow from with the IPs of the 'allowed' peoples,
this will effectively cut everybody else from the site.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 3) Posted: Wed Nov 26, 2003 1:01 am
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
news:bq0d7u$1ssbvj$2@ID-18487.news.uni-berlin.de...
 > Mike <me.DeleteThis@privacy.net> wrote:
  > > access to it only by ip address so I can just allow 2 or three people to
  > > look at it.
 >
 > If you use ServerName and the IP address, it will do, otherwise you can
 > turn the table and use Allow from with the IPs of the 'allowed' peoples,
 > this will effectively cut everybody else from the site.
 >
 > Davide

Hi Davide

So that i understand you correctly would it be possible to edit the below
code
so that i can see exactly the changes you mean

<VirtualHost *>
ServerAdmin webmaster.DeleteThis@xxx.co.uk
DocumentRoot /usr/home/xxx
ServerName <a style='text-decoration: underline;' href="http://www.xxx.co.uk" target="_blank">www.xxx.co.uk</a>
ErrorLog logs/xxx.co.uk-error_log
CustomLog logs/xxx.co.uk-access.log "combined"
scriptalias /cgi-bin/ /usr/home/xxx/cgi-bin/
DirectoryIndex index.htm index.html index.php
</VirtualHost>


with thanks<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Wed Nov 26, 2003 9:09 am
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike <me RemoveThis @privacy.net> wrote:
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.xxx.co.uk</font" target="_blank">www.xxx.co.uk</font</a>>
ServerName xxx.xxx.xxx.xxx <<< ip here

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 5) Posted: Wed Nov 26, 2003 11:27 pm
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
news:bq1g23$1tjg6s$1@ID-18487.news.uni-berlin.de...
 > Mike <me.DeleteThis@privacy.net> wrote:
<font color=green>  > > ServerName <a style='text-decoration: underline;' href="http://www.xxx.co.uk</font" target="_blank">www.xxx.co.uk</font</a>>
 > ServerName xxx.xxx.xxx.xxx <<< ip here
 >
 > Davide

I think there is some confusion.
You cant change the server name to the ip address of the person acessing
that
website as removing the servername will dis-associate the domain name from
the the website completely.
Can you confirm?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 6) Posted: Wed Nov 26, 2003 11:35 pm
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <me.RemoveThis@privacy.net> wrote in message
news:1069878445.379.0@demeter.uk.clara.net...
 >
 > "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
 > news:bq1g23$1tjg6s$1@ID-18487.news.uni-berlin.de...
  > > Mike <me.RemoveThis@privacy.net> wrote:
<font color=brown>   > > > ServerName <a style='text-decoration: underline;' href="http://www.xxx.co.uk</font" target="_blank">www.xxx.co.uk</font</a>>
  > > ServerName xxx.xxx.xxx.xxx <<< ip here
  > >
  > > Davide


Re-reading what u wrote im wondering if you mean add a second servername
such as below.

This doesn't work.

<VirtualHost *>
ServerAdmin webmaster.RemoveThis@xxx.co.uk
DocumentRoot /usr/home/xxx
ServerName <a style='text-decoration: underline;' href="http://www.xxx.co.uk" target="_blank">www.xxx.co.uk</a>
ServerName 82.125.24.24
ErrorLog logs/xxx.co.uk-error_log
CustomLog logs/xxx.co.uk-access.log "combined"
scriptalias /cgi-bin/ /usr/home/xxx/cgi-bin/
DirectoryIndex index.htm index.html index.php
</VirtualHost><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Thu Nov 27, 2003 9:33 am
Post subject: Re: Possible to specify access to site by ip address? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike <me.RemoveThis@privacy.net> wrote:
 > I think there is some confusion.

Yes, indeed...

 > You cant change the server name to the ip address of the person acessing
 > that

I wasn't proposing that, I was proposing to use the IP address OF THE
SERVER as "server name", so only typing <a style='text-decoration: underline;' href="http://the.ip.address.here" target="_blank">http://the.ip.address.here</a>
would have the result of showing the web site.

BTW, you can't have two ServerName directive, if you need more
"names" use ServerAlias.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Possible to specify access to site by ip address? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to Remote Access using ServerName? (NOT IP address) - Dear Experts: I have no problem accessing my website from the local machine, but am not able to access using my home computer. Does anybody know how to remotely access the website using the ServerName (ex. www.domain.com) rather than the IP address? If...

servers IP address shows the first site in virtualhost list - I am running several websites. Which ever website appears first in my virtual host file shows up when the servers ip address is typed into a browser. Is this normal?. Because i'm running several sites, I don't really want any of the sites to come up..

Error : could not bind to address 0.0.0.0:80 - Hi, I am beginer in use with apache. I have installing apache2 for just developping php script in local. When i would start apache2, i have this message : Starting httpd2: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 n...

page cannot be displayed with "www.yyy.com" address - I'm able to access the site when I prefix it with "http://". What configuration parameter allows me to access the site just using "www.yyy.com" instead of having me or other users type in the full "http://www.yyy.com"

Redirect depending on source ip address - Hi all. I'm looking for a solution to do something like this (cause of firewall restrictions): if a user comes into a specific virtual server in my apache web server from an ip 10.x.x.x it should be redirected to www.mywebsite.it:8081 if it comes fro...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]