Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th February 2012, 10:54
jackl jackl is offline
Junior Member
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default AliasDomain for Website on nginx

Hi There!

I'm trying to use Aliasdomain for website in ISPConfig 3 on nginx and it's working fine except for one thing, it is adding $1 to the end of the Redirect Path and that is messing up the URL and I'm getting 404 or 500 error. I'm just wondering if there is a work around.

By the way, I'm using it for wiildcard:
test.mydomain.com
will be redirected to:
http://www.mydomain.com/test.hml
but using the Aliasdomain for website feature creates this:
http://www.mydomain.com/test.html/index.php
I am using Joomla 2.5.1 with SEF turned on by the way. Till or anybody, do you know a work around with what I'm trying to do?

Thanks!

Reply With Quote
Sponsored Links
  #2  
Old 20th February 2012, 11:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

The redirect feature is made to redirect a url to a folder and not to a file. so you have to change your redirect path from:

http://www.mydomain.com/test.hml

to:

http://www.mydomain.com/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th February 2012, 20:40
jackl jackl is offline
Junior Member
 
Join Date: Apr 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bummer!

Till, can you guide me where do I find the php file that creates the nginx .conf directives. desperately I just needed this wildcard feature for our communications team to do it by themselves, if this is not too tedious to modify everytime a new ISPConfig version comes out I would rather hack the code. I would just like to remove the $1 it added to the redirect path and everything should work as I want it to be.

Oh, and a question, why does the script add $1 to the end of the rewrite nginx directive by the way? Nginx supposed to know what index file to load regardless it is specified or not.

Big thanks Till!
Reply With Quote
  #4  
Old 21st February 2012, 13:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by jackl View Post
Oh, and a question, why does the script add $1 to the end of the rewrite nginx directive by the way? Nginx supposed to know what index file to load regardless it is specified or not.
I've added this to our bugtracker. I'll check it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st February 2012, 15:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
 
Default

Quote:
Oh, and a question, why does the script add $1 to the end of the rewrite nginx directive by the way? Nginx supposed to know what index file to load regardless it is specified or not.
The $1 is to rewrite to the same path, it is not related to the index file.

Quote:
if this is not too tedious to modify everytime a new ISPConfig version comes out I would rather hack the code.
Thats not nescessary, as this can all be configured in the nginx_vhost.conf.master template. So you can configure it on your server as you need it and it wont get overwritten on updates when you put the modified configuration file in the conf-custom folder.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
joomla, redirect, wildcard

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx Segmentation fault Error,The Perfect Server - CentOS 6 With nginx [ISPConfig 3] alihan1988 HOWTO-Related Questions 0 2nd February 2012 17:07
Nginx doesn´t restart after installation of ISPConfig 3 cyprus Installation/Configuration 2 6th November 2011 18:48
A Working Nginx Catchall with ISPConfig 3. renders Tips/Tricks/Mods 4 15th April 2011 21:53
Nginx and PHP and Fastcgi Paladinemishakal Installation/Configuration 1 4th January 2011 13:45
Nginx on Fedora 11 Nammut HOWTO-Related Questions 1 3rd October 2009 16:35


All times are GMT +2. The time now is 04:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.