Hi RjOllos,

Per the document available at *https://trac.edgewall.org/wiki/STunnelTra 
<https://trac.edgewall.org/wiki/STunnelTracd>**cd 
<https://trac.edgewall.org/wiki/STunnelTracd>*

1. You are running tracd on port 8992, but you tried to connect on port 
8993. Is that just a typo? 

Ans : Its not typo 

 Now you just need to run stunnel, then tracd:

# stunnel4 /etc/stunnel/stunnel-tracd.conf
# tracd -d --http11 --hostname=localhost --port 8992 --auth [your auth options 
here] [trac_env_directory]

Option —http11 (use HTTP/1.1 protocol version instead of HTTP/1.0) seems to 
cause less random disconnects.

Now trac will be accessible at ​*https://url:8993/trac* 
<https://url:8993/trac> — the requests will be forwarded internally to port 
8992 on localhost, which tracd is listening on. If you self-signed your 
certificate your browser will ask you to confirm it.

Note that the use of 'localhost' is crucial - it prevents people from the 
outside to bypass your SSL restriction by connecting to port 8992 directly.

2. Have you confirmed that port 8992 is open in your firewall?
Ans : port 8992 is open 
tcp        0      0 127.0.0.1:8992              0.0.0.0:*                   
LISTEN      5360/python




On Thursday, April 21, 2016 at 6:02:53 PM UTC+5:30, Azad Prajapati wrote:
>
> Hi All,
>
> I am having issue with trac version 0.12  running on RHEL 5.11 (Tikanga) 
>
> 1. Currently my trac url is as below http://......URL...:8000/pdoc is 
> *working 
> fine*
>
> 2. I am trying the above url for HTTPS/SSL by using stunnel and refering 
> this doc *https://trac.edgewall.org/wiki/STunnelTracd 
> <https://trac.edgewall.org/wiki/STunnelTracd>*
>    Below are the steps I performed:
> Installed the stunnel pacakage under /etc/stunnel  (stunnel-4.15-2.el5.2)
>
> Have modified /data/../../conf/trac.ini file for pdoc project with below 
> inputs: 
>
> base_url= https://...URL...:8992/trac 
> use_base_url_for_redirect = true 
>
> Executing command -- stunnel /etc/stunnel/stunnel-tracd.conf successfully. 
>
> Running tracd instance for pdoc project 
> /usr/bin/nohup /usr/bin/tracd -d --http11 --hostname=localhost --port 8992 
> --basic-auth="pdoc,/data/../pdoc/.htpasswd," /data/tracenv/pdoc 
> >/data/tracenv/pdoc/log/trac_error.log & 
>
> Trying to open trac url with *https://..URL..:8993/trac*  *URL not 
> working  *-- connection refused error.
>  
> *Need help:*
>
> *My requirement is I need to make my currnet url 
> **http://......URL...:8000/pdoc 
> *  to   https://......URL...:8000/pdoc so that it support HTTPS/SSL 
> support.
>
> *Is anyone tried for https/ssl using stunnel, if not is it feasible to 
> configure trac for https/ssl by Apache if yes please let me know the 
> procedure/steps*
>
>
> Thanks in Advance
>  
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to