Help with apache conf

Help with apache conf

am 09.06.2007 03:19:30 von DaGeek

Can anyone help out with configuring my Apache server? I am running
Apache/1.3.33.

What I want to do is have apache listen on ports 80 and 5090. Any
traffic that comes to port 80, I want to sent it to port 5090. Why?
Because my ISP throttles port 80 and my upload it real bad. I just
want to run a small site for the family. Port 5090 doesn't get
throttled.

What I tried to do is:

1. Add to Listen directives.
Listen 80
Listen 5090

2. Comment out the Port directive.
# Port 80

3. Added a VirtualHost.
NameVirtualHost *:5090


ServerAdmin FooBar@gmail.com
DocumentRoot /www/mysite
ServerName mysite.dyndns.org
ServerAlias www.mysite.com mysite.com # these are two domains I registered
ErrorLog logs/error_log
CustomLog logs/access_log common


So, I have a domain name registered we will call mysite. That domain
redirects to mysite.dyndns.org. Dyndns.org will always send to my
public IP since I run the dyndns client. I opened ports 80 and 5090 on
my firewall. When I comment out the directives in step #3, apache
starts, though it doesn't do what I want. When I uncomment the
directives from step #3, apache won't start.

So, what am I doing wrong?

Sorry if this post shows up bad. I am on my Intel Mac and I don't have
a usenet posting client setup yet, so I am posting with a client made
for binaries.

Thanks.


--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Re: Help with apache conf

am 09.06.2007 17:14:15 von unknown

Post removed (X-No-Archive: yes)

Re: Help with apache conf

am 10.06.2007 18:15:52 von DaGeek

On 2007-06-09 11:14:15 -0400, Davide Bianchi
said:

> You also need to have a NameVirtualHost *:80 to catch the standard
> http requests and a to do the redirecr.
Thanks, I will add that.

> You usually also need some block for the DocumentRoot,
> I suggest you copy the default VirtualHost example.
Will do.

> And which error does he return?
I ran httpd -t and the conf file parsed fine. Running apachectl start
just give this:

Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/jim.conf
Processing config file: /private/etc/httpd/users/nora.conf
/usr/sbin/apachectl start: httpd could not be started

I will try adding the port 80 vhost.

> Davide

Thanks,

Jim


--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

Re: Help with apache conf

am 10.06.2007 19:10:54 von unknown

Post removed (X-No-Archive: yes)

Re: Help with apache conf

am 11.06.2007 00:21:09 von DaGeek

On 2007-06-10 13:10:54 -0400, Davide Bianchi
said:

> On 2007-06-10, DaGeek wrote:
>> Processing config file: /private/etc/httpd/users/nora.conf
>> /usr/sbin/apachectl start: httpd could not be started
>
> Check the error log, there should be some information more than 'could
> not be started'.
>
> Davide

Doh! I am used to Linux. I didn't check the error log which is in a
new location from apache on linux. Checking that, apache couldn't
write to the access/error logs because the logs directory for the VHost
didn't exist. Sorry about my stupidity today :-)

After fixing that, everything is up and running well now with both
Vhosts. So thanks for the help.

One last Q. Is there any way to tell Apache to send any traffic on
port 80 to 5090? For example, if a request comes it for:
http://mysite.com/foo/bar.jpg
I want apache to make it to:
http://mysite.com:5090/foo/bar.jpg.

Thanks again,

Jim


--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access