niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
serving millions of files
Post new topic   Reply to topic Page 2 of 61 [905 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4, ..., 59, 60, 61 Next
Author Message
Jim Jagielski
*nix forums beginner


Joined: 09 Feb 2005
Posts: 14

PostPosted: Wed Feb 09, 2005 7:25 pm    Post subject: Re: update mod_proxy_balancer load factors Reply with quote

The balancer has a built-in status/manager interface that
allows you to change balancer and worker properties.

dhay@lexmark.com wrote:
Quote:


Ok...but how would this update the mod_proxy_balancer?

I think one way would be to write a deamon which will check for load
average factor on your servers so you should send the request to least
loaded server or other way it can be to find out number of idle process
on these servers and send the request to the server with max number of
idle process.

Regards,
Love ..

dhay@lexmark.com wrote:

Hi,

I am using Apache to load balance a set of Tomcat servers. However, a
round-robin or simple load-factor algorithm is not sufficient.

I am wondering therefore, if there is any way to programatically update
the
mod_proxy_balancer load factors on the fly?

Many thanks,

David




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org










---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"There 10 types of people: those who read binary and everyone else."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Jim Jagielski
*nix forums beginner


Joined: 09 Feb 2005
Posts: 14

PostPosted: Wed Feb 09, 2005 7:35 pm    Post subject: Re: update mod_proxy_balancer load factors Reply with quote

It's web, so you'd need to work up a quick Perl/PHP/Python
script to POST the required data to it.

dhay@lexmark.com wrote:
Quote:


Thanks Jim,

Is this a programmatic interface, or a web page interface?

How would I call it programmatically to update it on the fly?

thanks,

David



|---------+----------------------------
| | Jim Jagielski |
| | <jim@jaguNET.com>|
| | |
| | 02/09/2005 02:25 |
| | PM |
| | Please respond to|
| | users |
| | |
|---------+----------------------------
--------------------------------------------------------------------------------------------------------------------|
| |
| To: users@httpd.apache.org |
| cc: love.kumar@tecnovate.co.in (love) |
| Subject: Re: [users@httpd] update mod_proxy_balancer load factors |
--------------------------------------------------------------------------------------------------------------------|




The balancer has a built-in status/manager interface that
allows you to change balancer and worker properties.

dhay@lexmark.com wrote:


Ok...but how would this update the mod_proxy_balancer?

I think one way would be to write a deamon which will check for load
average factor on your servers so you should send the request to least
loaded server or other way it can be to find out number of idle process
on these servers and send the request to the server with max number of
idle process.

Regards,
Love ..

dhay@lexmark.com wrote:

Hi,

I am using Apache to load balance a set of Tomcat servers. However, a
round-robin or simple load-factor algorithm is not sufficient.

I am wondering therefore, if there is any way to programatically update
the
mod_proxy_balancer load factors on the fly?

Many thanks,

David




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL: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-help@httpd.apache.org










---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL: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-help@httpd.apache.org



--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"There 10 types of people: those who read binary and everyone else."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"There 10 types of people: those who read binary and everyone else."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Wed Feb 09, 2005 8:00 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

Ah, this is the secret...

File: C:\WINDOWS\system32\drivers\etc\hosts

I had completely forgotten about that, though I did it
under my previous configuration. Now I can preview my
sites at http://mysite/ AND access XAMPP's home page
at http://localhost/

I'm back at my original website configuration...

C:/sites/mysite

But now that I have a solid foundation to work from, I
can try to implement your other tips.

Thanks so much!


--- Leif W <warp-9.9@usa.net> wrote:

Quote:
"David Blomstrom" <david_blomstrom@yahoo.com>;
2005-02-09@13:15 GMT-5

OK, I set up a couple sites inside public_html
folders, like this...

C:\sites\politix\public_html\

...but now I can't preview them at all. In fact, I
can't even preview the sites I didn't change, even
though I could normally view them at
http://localhost/mysite/

Ahh yes, this requires also that you have either the
Servername
registered in DNS (most common case), OR (probably
you case, which I do
for testing too) in your hosts file.

File: C:\WINDOWS\system32\drivers\etc\hosts

127.0.0.1 localhost
127.0.0.1 geozoo
127.0.0.1 politix

and so on.

If you want to view them at http://localhost/, then
it's another config.
Just go to the VirtualHost with the ServerName
localhost, and add the
Alias and Directory blocks for each host. Or skip
adding the directoy,
and use a Redirect for each "mysite", to go to the
actual site. You
would still need to update your hosts file with each
site for the
redirect, obviously. If you have everything under
localhost, then you
are no longer doing virtual hosting, and all those
sites are not
independent, but part of the same site: localhost.
If everything in the
sites is linked relatively (no links start with
http://mysite/ , nor
with /, only with path/to/filename, or
../../other/path/to/filename,
this could be ok.

The basic purpose of putting my content in a
folder
named public_html is security, right? So as long
as no
intruder gains access to my computer, I shouldn't
need
to both with public_html...right?

No only because of security but because it's the
right way to do virtual
hosting, which is what you asked about. Smile You
could potentially be
giving an intruder access to the computer. You may
listen only to IP
address 127.0.0.1, but if this machine is connected
to a network, there
may be ways to come in from the outside and pretend
to be coming from
127.0.0.1, then they can look at the web site which
you publish the logs
for everyone to see, and you've got PHP available.
They can see path
names in the logs, know where your Apache is, maybe
know of a PHP
vulnerability, upload their own scripts or content,
run their own
programs, reconfigure the server, change file
timestamps and rewrite the
logs to cover their tracks. Even if I had the
computer disconnected
from the network, I would still never configure it
this way, because it
leads to not thinking of the consequences, and I
might not be thinking
of them when it really would matter. Plus, once you
get it right, it
helps you to remember to keep doing it. :-)

So, if I go back to my original configuration...

C:\sites\mysite\

...then would the following virtual host script
still
work, or do I have to modify it?

VirtualHost 127.0.0.1:80
ServerAdmin webmaster@politix
ServerName politix:80
ServerAlias *.politix
CustomLog
"C:/sites/politix/logs/politix-access.log"
vcombined
ErrorLog
"C:/sites/politix/logs/politix-error.log"
DocumentRoot "c:/sites/politix"
Directory "c:/sites/politix"
Options None
/Directory
ScriptAlias /cgi-bin/
"c:/sites/politix/cgi-bin/"
Directory "C:/sites/politix/cgi-bin"
Options +ExecCGI
/Directory
/VirtualHost

I'd still put the DocumentRoot in a separate folder.
The way you use
it, it's the way I would use ServerRoot.
DocumentRoot is totally
different from ServerRoot. ServerRoot can only be
in the main server
config context (outside VirtualHost, never inside
anything). ServerRoot
describes a folder with files that Apache needs to
see, but should not
ever serve to anyone (except manual, icons, error).
DocumentRoot
describes folders with content that is most commonly
served to anyone
and everyone who can get a connection to Apache, by
proper or imporper
means. The whole point of virtual hosting is to
have separate
servernames, and separate folders for content.

Also, is this stuff case sensitive? In other
words, if
my physical path is actually C:\sites\GeoZoo\,
should
I write ServerName GeoZoo:80, or would geozoo:80
work?

* Hmm, all Apache tokens, I would assume are case
sensitve (ServerName,
not serverName).
* ServerName and ServerAlias values are not ever
case sensitive.
* ServerAdmin should never be, but it depends on the
mail server. It's
not standard to be case sensitive with email.
WaRp-9.9_(at)_uSa.NeT
should work just fine to reach me.
* Path names in windows, it depends on the windows,
but I would say are
probably not case sensitive. "C:/sites/geozoo" or
"C:/sites/gEOzOO"
should work. They ARE case sensitive in Linux,
FreeBSD, and probably in
most Unix and possibly in other OSes.

Try to get just one site running first, the
localhost, using the
structure I outlined. Start with putting folders in
the right place,
then changing the config to match the folders.
Never assume that you
are prisoner to the existing broken config, and do
not ever move folder
to match the broken config, just because it works,
or you won't fully
understand how to do this stuff. If it doesn't seem
to work be sure to
look at all of your access and error log files. If
you make a request,
and the server responds with something, even a 404
not found or 403
forbidden or 500 internal server error, then there
should be something
helpful in a log file. Always check the main
server's error log. If
you see nothing in a site-specific log file even
after you made the
request, check the main log. Maybe the config told
it to write to a
file in a folder that didn't exist. Apache will
create a missing log
file, but will not create a missing folder. Wink
Review the main config
file. Make sure you haven't got duplicate entries.
Comment out the
other VirtualHosts until you get one working, then
add one at a time.
You basically need to learn how to do one site, then
repeat the same
process. Once you understand enough to this point,
you can come up with
your own system, but you still do not ever want to
place log files under
your DocumentRoot. ;-)

Leif

=== message truncated ===



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Wed Feb 09, 2005 9:56 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

OK, this is making more sense, but I'm still missing
something. I asked some questions about XAMPP on
ApacheFriend's forum, too, and someone suggested I try
the following:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot /apachefriends/xampp/htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName sites
ServerAlias sites *.sites
DocumentRoot c:\sites
</VirtualHost>

<VirtualHost *:80>
ServerName geobop
ServerAlias geobop *.geobop
DocumentRoot c:\sites\geobop
</VirtualHost>

So I changed alll my sites to this format, and it
works perfectly. I can preview every site at
http://mysite/ AND I can access XAMPP's home page at
http://localhost/

Then I did an experiment. I changed two websites to
this format:

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@geoworld
ServerName geoworld:80
ServerAlias *.geoworld
CustomLog
"C:/sites/geoworld/logs/geoworld-access.log" vcombined
ErrorLog
"C:/sites/geoworld/logs/geoworld-error.log"
DocumentRoot "c:/sites/geoworld"
<Directory "c:/sites/geoworld">
Options None
</Directory>
ScriptAlias /cgi-bin/ "c:/sites/geoworld/cgi-bin/"
<Directory "C:/sites/geoworld/cgi-bin">
Options +ExecCGI
</Directory>
</VirtualHost>

I also put one of these websites inside a folder named
public_html...

C:/sites/public_html/geozoo/

After I restarted my computer, I couldn't access
either website, nor could I access XAMPP at
http://localhost/

I couldn't access GeoZoo (the site inside public_html)
at http://geozoo or http://public_html/geozoo/

One or both of the websites I modified asked for a
password when I tried to preview them on a browser.
Maybe that's a clue as to what I'm doing wrong. Any
tips?

Thanks.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Mike Edwards
*nix forums beginner


Joined: 09 Feb 2005
Posts: 2

PostPosted: Wed Feb 09, 2005 11:45 pm    Post subject: Re: possible bug with SSL on apache 2.0.52 Reply with quote

It also helps when one uses the SSLCertificateFile and
SSLCertificateKeyFile directives - specifying both the certificate
and the key with the SSLCertificateFile directive doesn't work too well.

Thanks, folks - I have it straightened out. I don't know how I missed
that...


On Thu, Jan 27, 2005 at 01:34:03PM -0500, Mike Edwards said:
Quote:
I'm running Apache 2.0.52 on a Linux/SPARC system
(UltraSPARC II processors).

I have created a CA, signed a certificate using this CA, and when I
attempt to start Apache with a vhost using the key + signed cert, I
receive the following in the error_log:

[Thu Jan 27 13:22:41 2005] [error] Init: Private key not found
[Thu Jan 27 13:22:41 2005] [error] SSL Library Error: 218710117 error:0D094065:asn1 encoding routines:d2i_ASN1_SET:bad class
[Thu Jan 27 13:22:41 2005] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Jan 27 13:22:41 2005] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Thu Jan 27 13:22:41 2005] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib

This happens both with the Debian-provided Apache2 package, and with
the vanilla Apache2 sources that I compiled earlier today.

The key + cert work on an x86 box with Apache2 (also Debian, using the
Debian package, no less).

I'm using gcc 3.3.4 to compile Apache2. Not sure what Debian is using.

Any ideas? I'd really like to get this to work.

--
Mike Edwards <sauron@psychology.rutgers.edu>
System Administrator
Psychology Department, Rutgers University, Newark campus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Boysenberry Payne
*nix forums addict


Joined: 07 Feb 2005
Posts: 71

PostPosted: Thu Feb 10, 2005 10:21 am    Post subject: Re: At the end of my rope with apache and mod_perl Reply with quote

First of all I want to say thanks for your time and explanations...

I'm going to try and re-explain my scenario, only because this thread
has kind of bounced between two, kind of confusing them. And, to make
it more complicated for me, it's on 4 lists. So here I go.

About a week ago I decided to move from spending most of my time
developing in php4 to beginning my transition to perl. I'm developing
a flash based content management system that's easier to use for
novices.
Mostly I've stuck with a combo of Flash on the client (using
actionscript 2.0,)
and PHP with MySQL on the back-end. It's been working beautiful, but
it only goes so far. We're going to need to automate account creation,
maintenance, etc... Right now we've been using propriety systems like
cpanel and modernbill. PHP is good, but doesn't do a lot of what we are
going to need. So enters Perl. It's that old saying, "I knew I'd be
here someday;
I just didn't know yesterday, it would be today."

So I started writing and updater for our client sites. Then, I learned
about the
benefits of mod_perl over mod_cgi and I was off. First thing I ran
into was
a problematic DBD::mysql install. When I couldn't get it to install I
tried a lot
of different approaches. That is when I think mod_perl got the
databases
confused. I did eventually find the solution to get it to install here:
http://www.truerwords.net/3556
Alas, it was too late, I had a confused mod_perl. It was giving me the
error
for a lib file that was for a database that was put in in one of my
attempts
to get the DBD::mysql installed. It wasn't the database I really use.
To make things even more complicated it was a fink 'unstable' package,
I wouldn't even really want to use.
It was at this point that I found out a couple of other things.
First, I can only use $r->print( "something" ) to get output to the
browser
when I use Apache::Registry a regular print doesn't do it, it does under
mod_cgi though. The second thing I figured out was when I ran
DBD::mysql
under the perl command locally or as mod_cgi it connected to the right
database, just not under mod_perl using Apache::Registry.

Then I started to try and compile my own versions of Apache 1.3.33 (the
same
as my production environment.) With or without fink or darwinports, by
itself
or DSO with mod_perl, I can't get a successful apache 1.3.33 working.

I've gotten a lot of great suggestions, all of which I've tried, none
have worked.

I'm not sure it's necessarily the only way to fix my problem though.
Starting to think like a perl guy (TMTOWTDI, right.) I'm guessing, not
sure but DBD::mysql or DBI is probably what set up mod_perl's lib. So,
maybe
I just need to reinstall them. Otherwise, I can always back my user
files
up and do a clean OS install (yuck!) I could keep trying to install my
own
apache1.3.33 too. In fact, I'd like to be able to, regardless...

So as far as the dyld goes. Is it something that is only effected
during source
compiling? If so I'd at least know it was one of the DB mods, for I
haven't
compiled either apache or mod_perl successfully. So if dylds only get
linked
during compile, using the env vars you explained, then I just need to
reset
them, maybe taking my /sw/ directory out of $PATH while I compile,
right?
Otherwise if there is a way to do it after it's compiled via editing a
header
doc or something, maybe I just need to trackdown the file using a combo
of the grep commands you gave examples for in your last email, right?

Thanks again,
Boysenberry


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Preston Podaril
*nix forums beginner


Joined: 10 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 1:58 pm    Post subject: redirect all to index.html Reply with quote

I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Preston Podaril
*nix forums beginner


Joined: 10 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 2:01 pm    Post subject: Re: redirect all to index.html Reply with quote

Sorry it is to early in the morning. My redirect is actually this:

Redirect !/index.html http://www.digitalpartners.com/index.html


Preston Podaril wrote:
Quote:
I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



!DSPAM:420b76b896731309263494!




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Jeremy Hilton
*nix forums beginner


Joined: 08 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 2:01 pm    Post subject: Re: redirect all to index.html Reply with quote

On 2/10/05 9:58 AM, "Preston Podaril" <ppod@ispi.net> wrote:

Quote:
I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org


This might work.

RedirectMatch /index.html /pages/index.html

Jeremy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Jeremy Hilton
*nix forums beginner


Joined: 08 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 2:04 pm    Post subject: Re: redirect all to index.html Reply with quote

On 2/10/05 10:01 AM, "Preston Podaril" <ppod@ispi.net> wrote:

Quote:
Sorry it is to early in the morning. My redirect is actually this:

Redirect !/index.html http://www.digitalpartners.com/index.html


Preston Podaril wrote:
I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



!DSPAM:420b76b896731309263494!




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org


Why arewanting to redirect / to /index.html?

If your DirectoryIndex is index.html, then anyone coming to / will be served
index.html.

Jeremy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Guest






PostPosted: Thu Feb 10, 2005 2:07 pm    Post subject: Re: redirect all to index.html Reply with quote

Strange. why do you want to do it?

Anyway, supposing that the images are in the "images" folder, something
like that could work

RewriteEngine on
RewriteLog /var/log/apache2/digitalpartner-rewrite.log
RewriteLogLevel 2
RewriteRule ^/images/(.*) /images/$1 [L,PT]
RewriteRule ^/(.*) http://www.digitalpartners.com/index.html [L,P]

gaël

Preston Podaril <ppod@ispi.net> wrote on 10/02/2005 16.01.12:

Quote:
Sorry it is to early in the morning. My redirect is actually this:

Redirect !/index.html http://www.digitalpartners.com/index.html


Preston Podaril wrote:
I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now
I
have a redirect, but I am not sure why it won't work, it seems obvious

to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL: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-help@httpd.apache.org



!DSPAM:420b76b896731309263494!




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL: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-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Preston Podaril
*nix forums beginner


Joined: 10 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 2:07 pm    Post subject: Re: redirect all to index.html Reply with quote

I want to redirect EVERYTHING to www.digitalpartners.com domain to
index.html, I care not about redirecting / to index.html, that is a
given with DirectoryIndex like you say. I want
http://www.digitalpartners.com/boooga_booggggga_boooogaaaaaa or whatever
the hell someone types in there to load (or redirect to) the
http://www.digitalpartners.com/index.html page, since we are wanting
just a static page now with a logo up, and don't want people with
bookmarked links to be able to get to content still.

make sense?

Jeremy Hilton wrote:
Quote:
On 2/10/05 10:01 AM, "Preston Podaril" <ppod@ispi.net> wrote:


Sorry it is to early in the morning. My redirect is actually this:

Redirect !/index.html http://www.digitalpartners.com/index.html


Preston Podaril wrote:

I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to that. Now I
have a redirect, but I am not sure why it won't work, it seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org








---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



Why arewanting to redirect / to /index.html?

If your DirectoryIndex is index.html, then anyone coming to / will be served
index.html.

Jeremy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



!DSPAM:420b780d272272113314696!




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Preston Podaril
*nix forums beginner


Joined: 10 Feb 2005
Posts: 19

PostPosted: Thu Feb 10, 2005 2:13 pm    Post subject: Re: redirect all to index.html Reply with quote

yeah we need to pages up there still, we aren't wanting to completely
wipe them out, but simply load just the logo as it does right now for
everything to that domain.

oxfordmusic.net wrote:
Quote:
I want to redirect EVERYTHING to www.digitalpartners.com domain to
index.html, I care not about redirecting / to index.html, that is a
given with DirectoryIndex like you say. I want
http://www.digitalpartners.com/boooga_booggggga_boooogaaaaaa or
whatever the hell someone types in there to load (or redirect to) the
http://www.digitalpartners.com/index.html page, since we are wanting
just a static page now with a logo up, and don't want people with
bookmarked links to be able to get to content still.

make sense?


do you need all the old pages up on the server still? if not, why you
just delete them all (or copy them to your local machine for
backup/archive purpose) and set your error page to be your index page?

andy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org



!DSPAM:420b79ac17961933413526!




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
oxfordmusic.net
*nix forums beginner


Joined: 10 Feb 2005
Posts: 7

PostPosted: Thu Feb 10, 2005 2:13 pm    Post subject: Re: redirect all to index.html Reply with quote

Quote:
I want to redirect EVERYTHING to www.digitalpartners.com domain to
index.html, I care not about redirecting / to index.html, that is a given
with DirectoryIndex like you say. I want
http://www.digitalpartners.com/boooga_booggggga_boooogaaaaaa or whatever
the hell someone types in there to load (or redirect to) the
http://www.digitalpartners.com/index.html page, since we are wanting just
a static page now with a logo up, and don't want people with bookmarked
links to be able to get to content still.

make sense?


do you need all the old pages up on the server still? if not, why you just
delete them all (or copy them to your local machine for backup/archive
purpose) and set your error page to be your index page?

andy



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Boyle Owen
*nix forums Guru


Joined: 07 Feb 2005
Posts: 618

PostPosted: Thu Feb 10, 2005 2:14 pm    Post subject: RE: redirect all to index.html Reply with quote

Quote:
-----Original Message-----
From: Preston Podaril [mailto:ppod@ispi.net]
Sent: Donnerstag, 10. Februar 2005 15:59
To: users@httpd.apache.org
Subject: [users@httpd] redirect all to index.html


I want to redirect all requests to a particular domain to index.html
such as all requests to www.digitalpartners.com to
www.digitalpartners.com/index.html

I had setup a rewrite that worked, but broke all images on the page
because it was rewriting anything that wasn't index.html to
that. Now I
have a redirect, but I am not sure why it won't work, it
seems obvious
to me, but I guess not.

Redirect !/index.html http://www.digitalpartners.com/pages/index.html

This is the same as "rewriting anything that isn't index.html" - or
would be, if you could use regexps with Redirect. At the very least you
need to use RedirectMatch.... eg,

RedirectMatch !/index.html
http://www.digitalpartners.com/pages/index.html

but this still won't work since pic.gif is NOT index.html so will be
redirected too (apache can't magically know you want only to apply it to
html files).

Probably better is mod_rewrite, which allows conditional rewriting, eg

RewriteCond %{REQUEST_URI} .*\.html$
RewriteCond %{REQUEST_URI} !/index.html
RewriteRule .* /index.html

This says:

if (request URI) ends in html AND
request URI is NOT index.html THEN
rewrite everything to index.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.


Quote:

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL: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-help@httpd.apache.org


Diese E-mail ist eine private und persönliche Kommunikation. Sie hat

keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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-help@httpd.apache.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 2 of 61 [905 Posts] Goto page:  Previous  1, 2, 3, 4, ..., 59, 60, 61 Next
View previous topic :: View next topic
The time now is Tue Dec 02, 2008 6:28 am | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts howto log in from one bsd-server to another and move file... Tobias Steer FreeBSD 3 Thu Jul 20, 2006 10:02 am
No new posts Binary Files Ronin C++ 8 Wed Jul 19, 2006 3:12 pm
No new posts Bug#378877: ITP: libsvm-doc -- documentation and example ... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:50 pm
No new posts Bug#378873: ITP: libsvm0-dev -- development files for Lib... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:20 pm
No new posts Bug#378866: ITP: libnanohttp1-dev -- header files for nan... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 12:40 pm

Loans | Credit Cards | Mortgage Calculator | Credit Counseling | Gas Suppliers
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3070s ][ Queries: 16 (0.0586s) ][ GZIP on - Debug on ]