LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2012, 03:02 AM   #1
hari.vhn
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Rep: Reputation: Disabled
Varnish Reverse proxy


hi,

I installed varnish reverse proxy in my rhel5 server.

apache running in port 80.

i edited /etc/sysconfig/varnish

DAEMON_OPTS="-a :6081 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-u varnish -g varnish \
-s file,/var/lib/varnish/varnish_storage.bin,1G"


when i try to start the varnish services
[root@hq245 varnish]# service varnish restart
Stopping varnish HTTP accelerator: [FAILED]

can anyone help me.
how to start varnish HTTP accelerator.

Thanks
 
Old 07-04-2012, 03:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well if it's not already running, it's going to fail to stop, isn't it? does it start?
 
Old 07-04-2012, 03:32 AM   #3
hari.vhn
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
no, it doesnt start.
Stopping varnish HTTP accelerator: [FAILED]
 
Old 07-04-2012, 03:49 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Again, that says "Stopping"...

given that you have the daemon options there, you may wish to try manually just running the daemon outside of the script, and you'll possibly get a very useful error back to help you. Also look in your logfiles.
 
Old 07-04-2012, 04:35 AM   #5
hari.vhn
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
my varnish is running,
[root@hq203 sysconfig]# service varnish status
varnishd (pid 13812) is running...

[root@hq203 ~]# varnishlog
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1341394113 1.0
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1341394116 1.0


now how to use varnish as a reverse proxy as well as in the browser.
 
Old 07-04-2012, 04:38 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
plenty of docs out there - https://www.google.co.uk/search?q=no...+reverse+proxy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reverse proxy zacetnik Linux - Newbie 2 04-18-2011 06:49 PM
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 06:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
reverse proxy? bwall Linux - Newbie 1 11-22-2005 07:42 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration