anyone?

2012/4/23 Carlos Gomes - STI Unesp Franca <cgo...@franca.unesp.br>

> Well, I have never good experiences with webmin... not sure if with a perl
> website it would help
>
> Im still studying to find out the correct configurations for the virtual
> hosts under debian
> thanks anyway
>
>
> 2012/4/23 Boris Wagener <boris.wage...@googlemail.com>
>
>> Hi,
>>
>> i've found a nice GUI on Weekend
>>
>> www.webmin.com
>>
>> You can manage the v-hosts via Webinterface.
>> Maybe it helps:-)
>>
>>
>> 2012/4/23 Carlos Gomes - STI Unesp Franca <cgo...@franca.unesp.br>
>>
>>> Well fellas, iv found a huge mistake i didnt payed attention before,
>>> while installing otrs via debian packages, it automatically adds code to
>>> /etc/apache2/conf.d with code to open up the otrs interface as the default
>>> virtual host, so no matter what I put up on the sites-avaiable would
>>> overcome this configs, silly me :)
>>>
>>> So, iv removed the otrs.conf from conf.d, so I can manage my own virtual
>>> hosts and get the results I wanna achive, as suporte.franca.unesp.brwould 
>>> point to
>>> customer.pl, admin.suporte.franca.unesp.br would point up to the
>>> index.pl admin interface.
>>>
>>> Now my problem is a little different, on both virtual servers Iv tryed
>>> to copy some configs from this otrs.conf, but the give me an error 500, and
>>> the old code Iv made to set up the virtual hosts opens the page as I
>>> wanted, but no css and rendering works. Is there a way to put up, and what
>>> configs, on the virtual hosts configuration so the sites loads fully?
>>>
>>> my config files in sites-avaiable are now as this:
>>>
>>> admin.suporte.franca.unesp.br
>>>
>>>> #mod do endereco de suporte (/etc/apache2/sites-available/
>>>> admin.suporte.franca.unesp.br)
>>>> #
>>>> <VirtualHost *:80>
>>>>         ServerAdmin cgo...@franca.unesp.br
>>>>         ServerName  admin.suporte.franca.unesp.br
>>>>         ServerAlias admin.suporte.franca.unesp.br
>>>>
>>>>         # Indexes + Directory Root.
>>>>         DirectoryIndex index.pl
>>>>         DocumentRoot /opt/otrs/bin/cgi-bin/
>>>>
>>>>         # CGI Directory
>>>>         # ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
>>>>         <Location /otrs>
>>>>                 SetHandler perl-script
>>>>                 PerlResponseHandler ModPerl::Registry
>>>>                 PerlOptions +ParseHeaders
>>>>                 PerlSetupEnv On
>>>>         </Location>
>>>>
>>>>         <Directory />
>>>>                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>>>>                 AllowOverride None
>>>>                 AddHandler cgi-script .pl
>>>>         </Directory>
>>>>
>>>>         # Logfiles
>>>>         ErrorLog  /var/log/otrs/admin/error.log
>>>>         CustomLog /var/log/otrs/admin/access.log combined
>>>> </VirtualHost>
>>>>
>>>>
>>>> and this for suporte.franca.unesp.br, notice that this one iv copyed
>>>> the full otrs.conf file from conf.d, and changed some lines so it fires up
>>>> the customer.pl.
>>>>
>>> # Config script para o vhost de suporte aos usuarios
>>>
>>>> # Criado em 17/04/2012 - cgo...@franca.unesp.br
>>>> #
>>>>
>>>> <VirtualHost *:80>
>>>> # if mod_perl is used
>>>> <IfModule mod_perl.c>
>>>>
>>>>     # load all otrs modules
>>>>     Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
>>>>
>>>>     # Apache::Reload - Reload Perl Modules when Changed on Disk
>>>>     PerlModule Apache2::Reload
>>>>     PerlInitHandler Apache2::Reload
>>>>     PerlModule Apache2::RequestRec
>>>>
>>>>     # set mod_perl2 options
>>>> #    <Location /otrs>
>>>> #        ErrorDocument 403 /otrs/customer.pl
>>>> #        ErrorDocument 403 /otrs/index.pl
>>>> #        SetHandler  perl-script
>>>> #        PerlResponseHandler ModPerl::Registry
>>>> #        Options +ExecCGI
>>>> #        PerlOptions +ParseHeaders
>>>> #        PerlOptions +SetupEnv
>>>> #        Order allow,deny
>>>> #        Allow from all
>>>> #    </Location>
>>>>
>>>>     # set mod_perl2 option for generic interface
>>>>     <Location /otrs/nph-genericinterface.pl>
>>>>         PerlOptions -ParseHeaders
>>>>     </Location>
>>>>
>>>> </IfModule>
>>>>
>>>> # directory settings
>>>> <Directory "/opt/otrs/bin/cgi-bin/">
>>>>         AllowOverride None
>>>>         Options +ExecCGI -Includes
>>>>         Order allow,deny
>>>>         Allow from all
>>>>         ErrorDocument 403 /index.pl
>>>>         DirectoryIndex customer.pl
>>>>         AddHandler  perl-script .pl .cgi
>>>>         PerlResponseHandler ModPerl::Registry
>>>>         PerlOptions +ParseHeaders
>>>>         PerlOptions +SetupEnv
>>>> </Directory>
>>>> <Directory "/opt/otrs/var/httpd/htdocs/">
>>>>     AllowOverride None
>>>>     Order Deny,Allow
>>>>    Deny from all
>>>>    Allow from 200.145.119.128/27
>>>> </Directory>
>>>>
>>>> <IfModule mod_headers.c>
>>>>     <Directory "/opt/otrs/var/httpd/htdocs/skins/*/*/css-cache">
>>>>         <FilesMatch "\.(css|CSS)$">
>>>>             Header set Cache-Control "max-age=2592000 must-revalidate"
>>>>         </FilesMatch>
>>>>     </Directory>
>>>>
>>>>     <Directory "/opt/otrs/var/httpd/htdocs/js/js-cache">
>>>>         <FilesMatch "\.(js|JS)$">
>>>>             Header set Cache-Control "max-age=2592000 must-revalidate"
>>>>         </FilesMatch>
>>>>     </Directory>
>>>> </IfModule>
>>>>
>>>> # MaxRequestsPerChild (so no apache child will be to big!)
>>>> # MaxRequestsPerChild 4000
>>>> </VirtualHost>
>>>>
>>>
>>> So, with this config iv i request the admin. subdomain it gives me to
>>> download the .pl file, and suporte points ok to the customer.pl, but i
>>> cant login and the css isnt loaded. The domains are up for public.
>>>
>>> Thanks very much for your help douglas, but I thin the mailing would
>>> preffer english language so all others could read and document.
>>>
>>> Im strugling for some days now, with no success... could find more
>>> documentations about virtual hosting that are suitable for my debian
>>> ambient. any help appreciated
>>>
>>>
>>>> tambem nao funcionou. ja tentei o caminho relativo completo e etc...
>>>>
>>>>
>>>> 2012/4/17 Douglas Nascimento <douglas...@gmail.com>
>>>>
>>>>> Eu não tenho certeza, mas acho que em DirectoryIndex você deveria
>>>>> colocar apenas index.pl ou customer.pl, sem o "/otrs/".  Exemplo:
>>>>>
>>>>> DirectoryIndex index.pl
>>>>> DirectoryIndex *customer.pl <http://index.pl/>*
>>>>>
>>>>>
>>>>> On Tue, Apr 17, 2012 at 5:06 PM, Carlos Gomes - STI Unesp Franca <
>>>>> cgo...@franca.unesp.br> wrote:
>>>>>
>>>>>> Hello Everyone!
>>>>>>
>>>>>> Iv set up different subdomains so i can point users to the
>>>>>> customer.pl page for ticket management, and another subdomain for
>>>>>> otrs administration. Iv followed many suggestions and documentations for
>>>>>> apache, but cant manage to use different hosts for both index.pl and
>>>>>> customer.pl, can anyone help me , if set up similar environment ?
>>>>>>
>>>>>> my apache configs are as this:
>>>>>>
>>>>>> subdomain: admin.suporte.franca.unesp.br
>>>>>> #mod do endereco de suporte
>>>>>> (/etc/apache2/sites-available/admin.suporte.franca.unesp.
>>>>>> br)
>>>>>> #
>>>>>> <VirtualHost *:80>
>>>>>>         ServerAdmin cgo...@franca.unesp.br
>>>>>>         ServerName  admin.suporte.franca.unesp.br
>>>>>>         ServerAlias admin.suporte.franca.unesp.br
>>>>>>
>>>>>>         # Indexes + Directory Root.
>>>>>>         DirectoryIndex /otrs/index.pl
>>>>>>         DocumentRoot /opt/otrs/bin/cgi-bin/
>>>>>>
>>>>>>         # CGI Directory
>>>>>>         # ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
>>>>>>         <Location /otrs>
>>>>>>         SetHandler perl-script
>>>>>>                 PerlResponseHandler ModPerl::Registry
>>>>>>                 PerlOptions +ParseHeaders
>>>>>>                 PerlSetupEnv On
>>>>>>         </Location>
>>>>>>
>>>>>>     <Directory />
>>>>>>         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>>>>>>         AllowOverride None
>>>>>>         AddHandler cgi-script .pl
>>>>>>     </Directory>
>>>>>>
>>>>>>         # Logfiles
>>>>>>         ErrorLog  /var/log/otrs/admin/error.log
>>>>>>         CustomLog /var/log/otrs/admin/access.log combined
>>>>>> </VirtualHost>
>>>>>>
>>>>>>
>>>>>> subdomain suporte.franca.unesp.br :
>>>>>> #mod so endereco de suporte (/etc/apache2/sites-available/
>>>>>> suporte.franca.unesp.br)
>>>>>> #
>>>>>> <VirtualHost *:80>
>>>>>>         ServerAdmin cgo...@franca.unesp.br
>>>>>>         ServerName  suporte.franca.unesp.br
>>>>>>         ServerAlias suporte.franca.unesp.br
>>>>>>
>>>>>>         # Indexes + Directory Root.
>>>>>>         DirectoryIndex /otrs/customer.pl
>>>>>>         DocumentRoot /opt/otrs/bin/cgi-bin/
>>>>>>
>>>>>>         # CGI Directory
>>>>>>         # ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
>>>>>>         <Location /otrs>
>>>>>>         SetHandler perl-script
>>>>>>                 PerlResponseHandler ModPerl::Registry
>>>>>>                 PerlOptions +ParseHeaders
>>>>>>                 PerlSetupEnv On
>>>>>>         </Location>
>>>>>>
>>>>>>     <Directory />
>>>>>>         AllowOverride None
>>>>>>                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>>>>>>         AddHandler cgi-script .pl
>>>>>>     </DirectOry>
>>>>>>
>>>>>>         # Logfiles
>>>>>>         ErrorLog  /var/log/otrs/customer/error.log
>>>>>>         CustomLog /var/log/otrs/customer/access.log combined
>>>>>> </VirtualHost>
>>>>>>
>>>>>> but both opens the index.pl file...
>>>>>>
>>>>>> iv also used this thread as refference:
>>>>>> http://lists.otrs.org/pipermail/otrs/2005-October/009192.html
>>>>>>
>>>>>> but seems quite old, and only one vhost wont suit me for logging
>>>>>> purposes.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> []'s
>>>>>> ---------------------------------
>>>>>> Carlos Gomes
>>>>>> Assistente de Informática II - STI
>>>>>> skype: cgomes.unesp
>>>>>> 55(16)3706-8783
>>>>>> UNESP/Franca - FCHS
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> OTRS mailing list: otrs - Webpage: http://otrs.org/
>>>>>> Archive: http://lists.otrs.org/pipermail/otrs
>>>>>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Atenciosamente,
>>>>> Douglas Nascimento de Jesus
>>>>> beaglenetwork.blogspot.com
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> OTRS mailing list: otrs - Webpage: http://otrs.org/
>>>>> Archive: http://lists.otrs.org/pipermail/otrs
>>>>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> []'s
>>>> ---------------------------------
>>>> Carlos Gomes
>>>> Assistente de Informática II - STI
>>>> skype: cgomes.unesp
>>>> 55(16)3706-8783
>>>> UNESP/Franca - FCHS
>>>>
>>>>
>>>
>>>
>>> --
>>> []'s
>>> ---------------------------------
>>> Carlos Gomes
>>> Assistente de Informática II - STI
>>> skype: cgomes.unesp
>>> 55(16)3706-8783
>>> UNESP/Franca - FCHS
>>>
>>>
>>> ---------------------------------------------------------------------
>>> OTRS mailing list: otrs - Webpage: http://otrs.org/
>>> Archive: http://lists.otrs.org/pipermail/otrs
>>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>>>
>>
>>
>> ---------------------------------------------------------------------
>> OTRS mailing list: otrs - Webpage: http://otrs.org/
>> Archive: http://lists.otrs.org/pipermail/otrs
>> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>>
>
>
>
> --
> []'s
> ---------------------------------
> Carlos Gomes
> Assistente de Informática II - STI
> skype: cgomes.unesp
> 55(16)3706-8783
> UNESP/Franca - FCHS
>
>


-- 
[]'s
---------------------------------
Carlos Gomes
Assistente de Informática II - STI
skype: cgomes.unesp
55(16)3706-8783
UNESP/Franca - FCHS
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to