RE: [users@httpd] name-server

2011-12-03 Thread Øyvind Lode
I can see that the domain is registered but I can't reach any dns servers.

loke:~$ host cdrstdu.edu.in
;; connection timed out; no servers could be reached
loke:~$ host -t NS cdrstdu.edu.in
;; connection timed out; no servers could be reached
loke:~$ whois cdrstdu.edu.in | grep -i 'name server'
Name Server:CDRSTDU.EDU.IN
Name Server:TIER-3.CDRSTDU.EDU.IN
loke:~$

You need to configure the 2 name servers to hold your domains zone info (like A 
records etc to point to your servers IP).

If you have already done so it's just taking a while to replicate.

When the dns records are up and running apache should serve the contents of the 
site.

-Original Message-
From: Dr. Sunil M. Dogra [mailto:smdo...@gmail.com] 
Sent: 3. desember 2011 07:58
To: users@httpd.apache.org
Subject: [users@httpd] name-server

Hi
I have Scientific Linux 5.6 (64bit) and have installed webserver.
when I do 

service httpd status 

it shows its running and also when I open the page on same machine it opens the 
page.

I have also registered my domain name (cdrstdu.edu.in) with my registrar. But I 
still could not open the page.

Any help for debugging?

With Best Regards
sunil


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] name-server

2011-12-03 Thread Dr. Sunil M. Dogra
Thank you for email.


On Sat, Dec 3, 2011 at 4:42 PM, Øyvind Lode  wrote:

> I can see that the domain is registered but I can't reach any dns servers.
>
> loke:~$ host cdrstdu.edu.in
> ;; connection timed out; no servers could be reached
> loke:~$ host -t NS cdrstdu.edu.in
> ;; connection timed out; no servers could be reached
> loke:~$ whois cdrstdu.edu.in | grep -i 'name server'
> Name Server:CDRSTDU.EDU.IN
> Name Server:TIER-3.CDRSTDU.EDU.IN
> loke:~$
>
> You need to configure the 2 name servers to hold your domains zone info
> (like A records etc to point to your servers IP).
>


How to do this, or who should I know that its done. I am little newer to
Apache.

With Best Regards
sunil


> If you have already done so it's just taking a while to replicate.
>
> When the dns records are up and running apache should serve the contents
> of the site.
>
> -Original Message-
> From: Dr. Sunil M. Dogra [mailto:smdo...@gmail.com]
> Sent: 3. desember 2011 07:58
> To: users@httpd.apache.org
> Subject: [users@httpd] name-server
>
> Hi
> I have Scientific Linux 5.6 (64bit) and have installed webserver.
> when I do
>
> service httpd status
>
> it shows its running and also when I open the page on same machine it
> opens the page.
>
> I have also registered my domain name (cdrstdu.edu.in) with my registrar.
> But I still could not open the page.
>
> Any help for debugging?
>
> With Best Regards
> sunil
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] name-server

2011-12-03 Thread Lester Caine

Dr. Sunil M. Dogra wrote:

I have also registered my domain name (cdrstdu.edu.in )
with my registrar. But I still could not open the page.


Registering the domain is not the same as 'hosting' it. You need to have the an 
ISP or registrar who actually provide a means of pointing YOUR ip address to the 
domain name. I register domains via my ISP, and they handle the DNS side of 
things and then I can set that link to my local ip address. In addition you need 
a fixed IP address locally for this.


An alternative is registering with one of the 'dynamic dns' providers who will 
compensate for a change of ip address if you don't have a static one.


e need a little more info on how you access the internet ;)

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Logging for mod_cache in Apache 2.2

2011-12-03 Thread Igor Galić


- Original Message -
> Hello,
>
> This is my first attempt at posting to the users mailing list so my
> apologies if I've made a mistake in my approach.
>
> I have integrated mod_cache into my application successfully and can
> confirm it is working properly by monitoring the cacheroot directory
> and by noting cached response headers on my requests (such as
> receiving an out of date max-age value even after changing the
> corresponding mod_headers value in my httpd.conf).
>
> I feel I could offer a significantly better value proposition for
> Production usage, however, if I were able to generate a log of
> cache-hit vs. cache-miss statistics for my application such as the
> functionality documented in the Apache 2.3 beta here:
>
> http://httpd.apache.org/docs/2.3/mod/mod_cache.html#status
>
> I have seen some of the solutions proposed on google, such as the
> SetEnv CACHE_MISS 1 solution proposed by Alex Polvi/Paul Querna but
> would prefer a native approach if possible.  There is also a section
> in the 2.3 docs under conditional logs that references this process
> but nothing I could find for 2.2.
>
> My question is, has anybody experienced a similar requirement and
> know if it would be possible to implement the 2.3 logging
> functionality into the 2.2 module?  I admit I am not much of a
> Developer, but if someone had already attempted this or could
> provide some high-level guidance I might be able to modify the
> module and re-build it.

I might be the wrong person to speak up here, since I've switched
for my caching needs to Apache Traffic Server, I'll do it anyway.

2.4 is closing in on being released. Real Soon Now.

If the features in 2.3/2.4 are the ones you need, I'd take a serious
look at it. In particular because everything concerning logging
in 2.3/2.4 is not really back-portable since it has been completely
reworked.

Latest 2.4.0 release plans:
http://mail-archives.apache.org/mod_mbox/httpd-dev/201112.mbox/%3c201112030048.19359...@sfritsch.de%3e


> Thanks,
> James Rapp
> Senior Ecosystem Quality Manager, Global Ecosystem and Delivery
> Partners,   AGS Primary Support

So long,
i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] name-server

2011-12-03 Thread Dr. Sunil M. Dogra
hi Lester Caine,
my ISP is ernet india and  cdrstdu.edu.in is also registered with
http://www.registry.ernet.in/


With Best Regards
sunil




On Sat, Dec 3, 2011 at 5:15 PM, Lester Caine  wrote:

> Dr. Sunil M. Dogra wrote:
>
>> I have also registered my domain name (cdrstdu.edu.in <
>> http://cdrstdu.edu.in>)
>>
>> with my registrar. But I still could not open the page.
>>
>
> Registering the domain is not the same as 'hosting' it. You need to have
> the an ISP or registrar who actually provide a means of pointing YOUR ip
> address to the domain name. I register domains via my ISP, and they handle
> the DNS side of things and then I can set that link to my local ip address.
> In addition you need a fixed IP address locally for this.
>
> An alternative is registering with one of the 'dynamic dns' providers who
> will compensate for a change of ip address if you don't have a static one.
>
> e need a little more info on how you access the internet ;)
>
> --
> Lester Caine - G8HFL
> -
> Contact - 
> http://lsces.co.uk/wiki/?page=**contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - 
> http://www.firebirdsql.org/**index.php
>
>
> --**--**-
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 
> http://httpd.apache.org/**userslist.html>
> for more info.
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.**apache.org
>  "   from the digest: 
> users-digest-unsubscribe@**httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Variables goes as REDIRECT_REDIRECT_

2011-12-03 Thread Igor Galić


- Original Message -
> Dear user,
>
> sorry for bother you with that question but I have a problem.
> I have setup varible used for authentication names SESSION.
> After some redirecting over proxies variable goes as
> REDIRECT_REDIRECT_SESSION
> But my program looks for variable SESSION.
>
> Do you know how to do that setting variable SESSION instead of
> REDIRECT_REDIRECT_SESSION?

What produces the redirects?

> Thank you in advance
>
> --
> Best Regards / S pozdravem
> Petr Hracek
>
> -
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>"   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] mod_rewrite help?

2011-12-03 Thread Igor Galić


- Original Message -
> On November 29, 2011 20:08 ,  wrote:
> > I'm having issues with mod_rewrite and Apache. Hopefully someone
> > can
> > offer some tips / help.
> >
> > I'm looking for something simple:
> >
> > (a) http://www.website.com ->  http://www.website.com/blog
> > (b) http://website.com ->  http://www.website.com/blog
> >
> > Also:
> > (1) https://www.website.com ->  https://www.website.com/blog
> > (2) https://website.com ->  https://www.website.com/blog
> >
> > (note that HTTP is NOT redirecting to HTTPS)
>
> It will be easier and cleaner if you put your rewrite rules in your
> httpd configuration file(s) instead of in .htaccess.  This is

Yes, That is very true.
And it's easier yet to not use mod_rewrite to begin with.

> particularly true if you have several virtual hosts being served from
> the same DocumentRoot.
>
> The answer to your question depends on how you have your virtual
> hosts
> set up.  Let's assume the following:
>
> * You have one virtual host, let's call it V1 for the purpose of
> referring to it in this email, that serves HTTP traffic for
> www.website.com.
>
> * You have another virtual host, V2, that serves HTTP traffic for the
> site website.com.  You do NOT have website.com site up as a
> ServerAlias
> for www.website.com in the virtual host V1.
>
> * You have a virtual host, V3, that serves HTTPS traffic for the
> www.website.com
>
> * You have a virtual host, V4, that serves HTTPS traffic for
> website.com
>
> Under these assumptions,
>
> (a) can be phrased as "when a user goes to http://www.website.com/ I
> want them to be redirected to http://www.website.com/blog.  All other
> URL paths for the site, other than /, should be unaffected -- for
> example, if the user goes to http://www.website.com/other then the
> URL
> should remain unchanged".  The mod_rewrite rule that does this, which
> should be placed in virtual host V1, is:
>
> RewriteRule / http://www.website.com/blog
>
> (b) can be phrased as "when a user requests any resource beneath
> http://website.com/ I want the URL rewritten to request the same
> resource under http://www.website.com/.  It's best to use the
> Redirect
> directive for this instead of a mod_rewrite rule.  The Redirect
> directive should be placed in virtual host V2:
>
> Redirect / http://www.website.com/
>
> Note that if a user goes to http://website.com/ they will first be
> redirected to http://www.website.com/ and then they will be
> redirected
> again to http://www.website.com/blog.  If you try to do the redirect
> in
> a single step, then this complicates URL handling, so I don't
> recommend
> it in general.
>
> (1) and (2) use the same directives as (a) and (b), but you put them
> in
> the virtual host contexts for V3 and V4, respectively, instead of V1
> and V2.
>
> Note that the directives should be placed directly in the appropriate
> virtual host context, and they should not be in a Directory or other
> context within the virtual host context.


> --
>Mark Montague
>m...@catseye.org

The only problem with RewriteRule / is that it won't work, e.g.:

igalic@tynix ~ % echo f/oo | perl -ne 'print if m{/}'
f/oo

That is not the desired effect.

It's much easier and cleaner to achieve with VHosts, because it's
actually readable.

# Redirect Only VHost

   ServerName example.com
   Redirect / http://www.example.com/blog



  ServerName www.example.com
# No looping here, we only redirect /
  RedirectMatch ^/$ http://www.example.com/blog

# I shall leave the setup of a DocumentRoot as
# an exercise to the reader.



Now, the tricky part is HTTPS, but only because for what you want
you'll need two valid certificates. (Or one valid for both domains
via SubjectAltName. Not sure what's more expensive). But essentially
it looks the same with *:443 and https:// in the Redirects.

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] name-server

2011-12-03 Thread Lester Caine

Dr. Sunil M. Dogra wrote:

hi Lester Caine,
my ISP is ernet india and cdrstdu.edu.in  is also
registered with http://www.registry.ernet.in/


I think you need to be talking to them to find out how you set up the ip address 
of your machine. CDRSTDU.EDU.IN can't be your name server ... that entry needs 
to be a computer that will connect CDRSTDU.EDU.IN with your own ip address. I 
use 1and1 as an ISP, and the name servers are a 1and1 address


lsces.co.uk is pointing to 81.138.11.136, my fixed ip address here, and the name 
servers are

ns67.1and1.co.uk
ns68.1and1.co.uk

both provide that link.

I don't think that http://www.registry.in/whois/cdrstdu.edu.in is currently set 
up to point properly to a name server. It may be that you need to set up this 
information with an IP address, which is how I believe the ac.uk academic system 
works.


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] name-server

2011-12-03 Thread Stormy

At 05:27 PM 12/3/2011 +0530, Dr. Sunil M. Dogra wrote:

hi Lester Caine,
my ISP is ernet india and  cdrstdu.edu.in is also 
registered with http://www.registry.ernet.in/

[snip]
This is getting off-topic for this list, but you have registered your own 
server as the Name Server (NS record) which does not work (if you can't be 
found, nobody can look up *how* to find you.)


I understand that you are a department of a major university which has 
proper DNS/NS setup. Suggest you contact:


Tech Email:direc...@ducc.du.ac.in
Name Server:E-EIHQ01.EIS.ERNET.IN
Name Server:E-EIHQ02.EIS.ERNET.IN
Name Server:HIMALAYA.DU.AC.IN

for resolution.

br - Paul
Tired old sys-admin 

[users@httpd] Double Slashes in URL Path

2011-12-03 Thread Tim Roberts

I need some help understanding URLs returned from our WebDAV server.

I have several sites set up using Name Based virtual hosts.

i.e. http://hostname.mydomain.com

I need to be able to send direct links to files. When I use Copy URL from my 
client application I get a URL that looks like:

http://hostname.mydomain.com//filename

Note double slashes.

I do not have trailing slashes in DocumentRoot or Directory statements.

I need for URLs to be:

http://hostname.mydomain.com/filename


I've searched high and low for an answer and can't find any references to such 
a problem.
I just replaced the stock Apache with the current release and still have the 
same results.

Any help would be appreciated.

Mac OS X Server 10.6.8
Server version: Apache/2.2.21 (Unix)

Thanks,

Tim Roberts
Vibe Room Music
Nashville, TN
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Double Slashes in URL Path

2011-12-03 Thread Steve Swift
I'm no expert in this area, which is perhaps why I've also seen the
problem. The upside is that apache seems to ignore the double slashes, but
this is probably because the underlying systems do the same. Try typing a
file, then change one of the slashes to a double slash; it still types out
(both Windows and Linux).

Your first step is to be very clear what is creating the url's. You say
they are coming from the client application, but what, exactly, is this?
Are the URL's generated by code of some sort (JavaScript/CGI scripts/etc),
or simply HTML?

On 4 December 2011 02:16, Tim Roberts  wrote:

>
> I need some help understanding URLs returned from our WebDAV server.
>
> I have several sites set up using Name Based virtual hosts.
>
> i.e. http://hostname.mydomain.com
>
> I need to be able to send direct links to files. When I use Copy URL from
> my client application I get a URL that looks like:
>
> http://hostname.mydomain.com//filename
>
> Note double slashes.
>
> I do not have trailing slashes in DocumentRoot or Directory statements.
>
> I need for URLs to be:
>
> http://hostname.mydomain.com/filename
>
>
> I've searched high and low for an answer and can't find any references to
> such a problem.
> I just replaced the stock Apache with the current release and still have
> the same results.
>
> Any help would be appreciated.
>
> Mac OS X Server 10.6.8
> Server version: Apache/2.2.21 (Unix)
>
> Thanks,
>
> Tim Roberts
> Vibe Room Music
> Nashville, TN
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Steve Swift
http://www.swiftys.org.uk