?

Log in

Apache HTTP Server Community's Journal
 
[Most Recent Entries] [Calendar View] [Friends]

Below are the 18 most recent journal entries recorded in Apache HTTP Server Community's LiveJournal:

[ << Previous 20 ]
Saturday, November 17th, 2007
11:46 pm
[joanette]
new

Hi guys, I'm new to this community as well as to the whole website making thingy. 

Last Monday I bought my own domain with my name, but of course me being dumb I can't figure out how to log into FTP with that domain. I know the intro thing is: http://domains.lycos.com/service/select, now when I go to SmartFTP and put the link and my user name and password, FTP says that  it "Cannot login waiting to retry (30s)" I'm, not sure what I'm doing wrong. Should I unblock something? on the server? 

Any help would be muchly appreciated. I hope I can ask/post this in this community. 



 

Sunday, April 22nd, 2007
11:18 am
[jojobear99]

Hey guys! I could use some help again with mod_rewrite. I can't figure out what I'm doing wrong. I'm trying to turn a url like: http://localhost/giving/sponsorship/boys/1 into http://localhost/giving/sponsorship/index.php?show=boys&page=1

I was testing it on a production server before, but I don't have very good access to the server configuration to change it, so I decided to test on my local machine server where at least I can verify mod_rewrite is enabled in the httpd.conf .

Here is my .htaccess document in the / directory of the webserver folder.

ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500

RewriteEngine on

RewriteRule ^giving/sponsorship/([a-z]+)/(0-9)*$ /giving/sponsorship/index.php?show=$1&page=$2 [NC,L]

Options -Indexes

But when I connect to http://localhost/giving/sponsorship/boys/1 I just get 404 that the page is not there, but if I manually connect to http://localhost/giving/sponsorship/index.php?show=boys&page=1 it works fine. I'm out of ideas of what could be configured wrong or what's wrong with my rule, so any advice on why that wouldn't work would be appreciated.

Sunday, December 18th, 2005
10:59 pm
[jojobear99]
can anyone help me fix a mod_rewrite rule?
I'm trying to set up a rule to stop hotlinking on some images on my site, but what I wrote is not working, and I'm not totally sure what's wrong with it, but figured there must be someone out here with a little more experience at mod_rewrite than me :)

Here's what I have right now (well, commented out until I get it working) in my .htaccess:
Read more...Collapse )
Thursday, December 15th, 2005
10:55 am
[youcreateworlds]
Redirect Question
I have an installation of LiveJournal running on my server. It's running on the same apache install as my other sites. I want to be able to use user subdomains ($user.ljdomain.com) that redirect (based on $user) to ljdomain.com/user/$user. But, because I run multiple sites on this same server, using different IP addresses/NameServers, I can't use NameVirtualServer *:80 (it pulls up the wrong site). If the requests will hit the lj config files, the redirection will be done automatically, but I don't know of any way around this issue using DNS or otherwise.

If this is not possible, is it possible to have some sort of redirect script that will pull the $user from user.ljdomain.com and reformat the url as ljdomain.com/user/$user, all automatically?

Thanks for any suggestions or advice!

-Chris
Tuesday, December 13th, 2005
4:38 pm
[faerygirl]
major apache issues!
Hello, I just joined this fine community...actually it's quite an amazing coincidence that I found it right when my Apache server is having terrible problems.
I haven't had problems with it up until recently, but lately it has just been really misbehaving on me! Normally I have one of my friends help me with it but he's really busy so hopefully someone here can be of service.

Here it goes:

I got a new computer (an emachine with Windows xp Media Edition) a few months ago and ran Apache on it just perfectly. I was all set to start working on a new layout for my web page when something weird happened with Comcast: they actually kicked me offline for having a virus! I never knew comcast could do that...so I had to go to Best Buy where they swept my entire computer clean and reinstalled all the things the machine came with. Luckily I had back up files of most of my pics and such...but not of Apache of course.

So I had to re-install Apache from its website. This is around where the trouble started.
When I re-installed it, I followed the guidelines that my friend (who has always helped in the past) had written down for me in previous emails. I had saved the emails so that I could refer to them later in case of such things.
I installed Apache 2.0.55, or as the actual file is read: apache_2.0.55-win32-x86-no_ssl.msi to my desktop and then ran the file.
I typed in my information correctly (I even double and triple checked that!), and then continued to install...and Apache ran perfectly fine.

Then, of course, I had to go to the C:\Program Files\Apache Group\Apache2\conf file and modify the httpd.conf file. I copy and pasted what was in an email I received from my friend, which has always been correct in the past and which, previously, I have had NO problem with AT ALL.

However, when I restarted Apache, I got the following message: "The requested operation has failed!"
It hasn't started since then. *cries*

I have tried to do the following to remedy (and possibly understand) what is going on:

1. I tested the Apache Server Configuration
when I did this, it said that there was an error on line 15 of the httpd.conf file. I checked line 15 and didn't see anything out of order, but I was also unsure of what I was looking for, so that didn't much help.

2. I checked the Error Log File
when I did this, this message (among message that were not errors or problems) came up:
[Mon Dec 12 17:29:28 2005] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.

What exactly does this mean? I had no clue...

3. I searched for the words "Asynchronous AcceptEx" on google and came up with a few sites that I thought might explain what was going on, but mostly they were just a bunch of people talking about similar problems, rather than a solution to the problem.


Sooo...I still remain lost and need help!
If anyone knows anything about this or has suggestions please let me know. This has been going on for about a month now and I am not a person with money (being a college kid and all), so I can't just have my domain name sit here being unused.
:(

Thanks to anyone who can help me!
Saturday, October 29th, 2005
2:33 pm
[angrymelody]
somebody trying to hack me
I am running an apache server on my computer and I keep on getting some weird stuff on the server log like "x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90" before this it's 69.208.241.234 - - [29/Oct/2005:01:31:32 -0400] "SEARCH, and ends with 414 336. I know this guy is trying to hack me because his ip address comes up repeatedly on my firewall. Mostly attacks using back orifice. I am used to getting attacks but usually not consistantly from the same IP addresses. If anyone can help me figure out a way to permantly block him from accessing my server and computer I would appreciate it. I don't know if there is an option on norton to directly block specific IP's.
Sunday, October 2nd, 2005
5:57 pm
[node]
weird weblog entries

I see stuff like this in my web server logs:

cut to keep 'friends' pages from messing upCollapse )
Wednesday, August 10th, 2005
1:31 pm
[jasondubya]
HTTPS on Redundant Servers
[Cross posted to apache, httpd, linux]

I've been given the assignment to setup dual web servers behind a ServerIron load balancer in an effort to improve the reliability of my company's website. Unfortunately, I have never done this before where I had to deal with https on redundant servers. My question may be quite simple, but I don't know the answer.

How do I get secure certificates for multiple servers with the same common name? Creating the CSR is the easy part, but last time I tried to get multiple certificates for the same common name, it failed as there was already one certificate created for that name.
Sunday, April 11th, 2004
9:15 pm
[iamherslave]
Noob
Hello everyone! I'm new to the community and also very new to using Apache.
I am a Mac OSX user, and trying to edit my httpd.conf file through terimal. I use the command:
cd /etc/httpd
and then sudo pico httpd.conf
and what it says is: Unknown terminal type network!

So, I'm not sure what I'm doing wrong. I just recently wiped my HD and reinstalled my OS but I don't remember doing anything to bring an httpd.conf file into existence before. It was just there....

All I want to do is change my TCP port for incoming http to 8080 since my ISP blocks port 80.

Any help is appreciated.

Like I said, I am very new at using Apache and had help before setting up httpd.conf to reroute my port.


Thanks in advance!

Current Mood: aggravated
Tuesday, April 6th, 2004
7:58 am
[zach]
Does BindAddress really work the way I'd expect it to?

If I had two apache processes on one box with three IPs, would it be possible for BindAddress 209.133.47.100:80 to work on one, and BindAddress 209.249.204.229:80 to work on the other without errors saying that #2 can't bind to port 80?

Or should I be doing something else?
Saturday, February 14th, 2004
11:41 pm
[botemuthegreat]
Virtualhosts on apache 1.3
I have set these things up on 2.0 without any problems, but I can't for the life of my get them to work on 1.3, I have checked my syntax and directives countless times. I have gone one by one and nothing seems to be working, they all just point to my main index. Any thoughts? Anything special I should know about 1.3 vs 2.0 that i should know? or am possibly looking over? any help would be greatly appreciated

Current Mood: frustrated
Sunday, February 8th, 2004
8:05 pm
[kiltotter]
Running LiveJournal as a subsite?
I need to do the following...

  1. Have a standard web site running for general information as some.domain

  2. Have LiveJournal running under livejournal.some.domain -or- some.domain/livejournal

  3. Have other sites running as sitename.some.domain -or- some.domain/sitename/


I had the LJ code running and taking the whole site over, not what I wanted, then I have managed to get the "dummy page" running, but no access to LJ.

Can anyone give me a hint how to get LJ to run using one or other or even better, BOTH, of the references?

I'm running debian 3.0r1, Apache 1.3.2, mySQL, Perl 5, etc...

Thanks

Current Mood: nerdy
Sunday, January 18th, 2004
5:58 pm
[botemuthegreat]
HELP!
I'm having trouble with authentication on my apache 2.0 server here is what i have in my httpd.conf ( I am running redhat 9)

#Authentication

AuthType Basic
AuthName "proxy"
AuthUserFile /etc/httpd/proxypass
Require Valid-User


AuthType Basic
AuthName "proxy"
AuthUserFile /etc/httpd/proxypass
require valid-user


The first directory won't let me login but the second will. originally i had seperate files for each and then i went to 'Require User X' but it still didn't work, so to trouble shoot i tried making them the same. Now i'm out of ideas. the password file 'proxypass' is chmod 775, the files/folders within are either chmod 775 or 777. any help wouldbe great

Current Mood: confused
Thursday, December 18th, 2003
5:28 pm
[tmtl]
Redirect issues
Cross-posted to Apache

Running Apache 1.3.29 on Windows 2000
Have also tried Apache 2.0.48 on FreeBSD 5.0-RELEASE (Generic kernel)
My host uses Apache 1.3.27 on FreeBSD 4.8-STABLE (Custom kernel)

I use the following .htaccess

Read more...Collapse )

Which works a charm. I can visit all the links on the site, and they redirect as extected, and template.cgi spits out the correct info
If I goto test.domain.com I am presented with tings out of rht e/test/ directory, as expexted

If I try this locally, I'm presented with a 500-Internal server error. The error.log shows
[Thu Dec 18 17:10:48 2003] [error] [client 127.0.0.1] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

My windows httpd.conf is as follows

Read more...Collapse )

File permissions don't allow me to view the httpd.conf on my hosts server

It would seem my rewrite rules are looping, but I can't see why it works on my host

Any ideas what I'm doing wrong?

Thanks
Ben
Wednesday, September 3rd, 2003
8:34 pm
[tmtl]
SEARCH method?
What do the following 2 log lines represent?

Apache 1.3.28 on FreeBSD, 'common' log format used for access log

I've not seen SEARCH requests before. Seems I've sent back 339 bytes of content, too. Unless I'm reading the log wrong?

216.135.36.130 - - [03/Sep/2003:08:50:14 +0100] "SEARCH / HTTP/1.1" 501 339
216.135.36.130 - - [03/Sep/2003:08:50:14 +0100] "SEARCH / HTTP/1.1" 501 339 "-" "-"


Any clues?

And whilst I'm on log lines that I don't understand. Can anyone tell me what happened in the below 2?

12.148.6.117 - - [01/Sep/2003:21:47:23 +0100] "-" 408 -
12.148.6.117 - - [01/Sep/2003:21:47:23 +0100] "-" 408 - "-" "-"


Seems there was a no request method, for no resource, which timed out?

I'm a little confused



Thanks
Friday, August 29th, 2003
5:16 pm
[urper_fox]
Subdomains with mod_rewrite
I am attempting to implement user subdomains on two of my websites.
/homedir/ is the location of the files presented at www.abc.com
/homedir/users/$user is the location of the files for user.abc.com.
So far i can only get it to redirect to www.abc.com/users/$user because the internal redirect causes some form of infinite loop (/users/$user/users/$user/users/$user........................)

Can anyone help me out?

Current Mood: stressed
Tuesday, July 29th, 2003
1:47 pm
[timwi]
Forcing Apache to send data to client
Hello,

I've written a web application in Perl (using mod_perl), and it's working quite OK thus far, but it's slower than it should be, because Apache delays the sending of data to the client until the very end of my script.

Is there an option to turn that off?

Here's some example code that I used to test this:
sub handler
{
    my $r = shift;
    $r->content_type ("text/plain; charset=utf-8");
    $r->send_http_header ();
    print ("Line 1\n\n");
    sleep (1);
    print ("Line 2\n\n");
    sleep (1);
    print ("Line 3\n\n");
    sleep (1);
    return OK;
}
Then I telnet the server and send the request by hand. What should happen is that I see the three lines appear in progression. What does happen is that it does nothing for three seconds, and only then sends everything.

So, is there a way to tell it to send response headers and data immediately?

Thanks in advance!
Friday, July 18th, 2003
1:25 pm
[xunker]
mod_rewrite Voodoo: limit connections based on cookie?
I've got a "poor man's load balancer" built up from Apache httpd 2.0 and it works really, really well but there is one more thing I want to be able to do with it. Now, it's easy to redirect clients based on cookies, but I want to go one further -- redirect (and drop) clients based on A) cookie/absence of cookie B) current number of apache processes.

Goes like this: I want to give my web site users a "fast server" option where if they have a certain cookie the load balancer will redirect them to a cluster of special servers reserved for them (a la Livejournal) so they can still work quickly while the public cluster goes slow. The problem is that with mod_rewite/mod_proxy that as the main web servers get slow the load balanacer begins to cue requests until MaxClients is hit so the cookie designating fast server access is moot because no clients can get a spot on the load balancer at all.

In basic terms I want to be able to say something like this (pardon the joe-code):

RewriteCond %{HTTP_COOKIE} !^(.*)use_fast=yes(.*)$ [AND]
RewriteCond %{HTTP_PROCESSES} > %{HTTP_MAXCLIENTS}-50
RewriteRule (drop the client)

..but I don't know if httpd 2.0 has an API function that returns the current number of active processes and the number of Maxclients. Which is to say I don't know if variables like HTTP_PROCESSES and HTTP_MAXCIENTS exist, the documentaion doesn't touch on it and all my tests up till now prove negative.

Has anyone done this? I know I can use mod_thottle to limit concurrent requests, but I can't moderate that based on cookie.
[ << Previous 20 ]
Apache HTTP Server Project   About LiveJournal.com