Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2010, 10:06
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default Publishing a Zend project in a subdomain of my website

Hi guys,

how have I publish a Zend project in a subdomain of my website using ISPConfig?

I have read that I cannot edit the Vhost file, so how have I do?

thanks
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2010, 15:51
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Any idea guys?!
I need to create a virtual host for my Zend project but it is not possible, so how have I do?

This is the VirtualHost created for managing the Zend project:

Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/myzendproject/public
        ServerName www.myzendproject.com

        <Directory /var/www/myzendproject/public>
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
</VirtualHost>
how have I use ISPConfig in order to create this VirtualHost?

Thanks
Reply With Quote
  #3  
Old 14th May 2010, 13:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You can use the Apache Directives field to add custom directives to the vhost.
__________________
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
  #4  
Old 14th May 2010, 13:28
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Falko,

thanks for your reply. I don't understand how have I do.
What have I write in that textarea?

thanks
Reply With Quote
  #5  
Old 15th May 2010, 19:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I think all you have to do is add
Code:
<Directory /var/www/myzendproject/public>
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
</Directory>
to your Apache Directives field. Please make sure you use the correct path.
__________________
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
  #6  
Old 27th May 2010, 16:45
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

hi falko,

I have seen already a <directory> structure inside the VirtualHost section. Can two blocks live together?

Code:
<Directory /var/www/web63/web/>
        AllowOverride All
</Directory>

<Directory /var/www/web63/web/myproject/public>
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
</Directory>

RewriteCond %{HTTP_HOST}   ^myproject\.mysite\.biz [NC]
RewriteRule ^/(.*)         http://www.mysite.biz/myproject/public/$1 [L]
I get this error:
Code:
[Thu May 27 18:10:10 2010] [error] [client 95.148.233.239] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
If I delete these two rows the webserver redirect me inside the folder specified. I need to maintain a clean URL.
Code:
RewriteCond %{HTTP_HOST}   ^myproject\.mysite\.biz [NC]
RewriteRule ^/(.*)         http://www.mysite.biz/myproject/public/$1 [L]
Inside the ISPConfig Panel I have set a Co-Domain WITHOUT forward url for the domain mysite.biz.

What have I do?

thanks

Last edited by vaio1; 27th May 2010 at 18:22.
Reply With Quote
  #7  
Old 28th May 2010, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by mturillo View Post
hi falko,

I have seen already a <directory> structure inside the VirtualHost section. Can two blocks live together?
Yes.
Quote:
Originally Posted by mturillo View Post
If I delete these two rows the webserver redirect me inside the folder specified. I need to maintain a clean URL.
Code:
RewriteCond %{HTTP_HOST}   ^myproject\.mysite\.biz [NC]
RewriteRule ^/(.*)         http://www.mysite.biz/myproject/public/$1 [L]
Are there any other rewrite rules in the vhost configuration or in a .htaccess file?
__________________
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
  #8  
Old 13th June 2010, 11:57
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
 
Default

yes they are!

Code:
<Directory /var/www/web2/web/>
        AllowOverride All
</Directory>

# enable Compression
AddOutputFilterByType DEFLATE text/html text/plain text/xml 

# enable expirations
ExpiresActive Off


RewriteCond %{HTTP_HOST}   ^webpanel\.mysite\.com [NC]
RewriteRule ^/(.*)         http://www.mysite.com:81/$1 [L]

RewriteCond %{REQUEST_URI} !index\.php
RewriteCond %{HTTP_HOST} ^myproject\.mysite\.com [NC]
RewriteRule ^/(.*) http://www.mysite.com/myproject/public/$1 [L]

RewriteCond %{HTTP_HOST}   ^webmail\.mysite\.com [NC]
RewriteRule ^/(.*)         http://www.mysite.com/others/webmail/$1 [L]


# tail /var/www/web2/log/error.log 
[Sun Jun 13 11:47:29 2010] [debug] core.c(3054): [client 95.245.233.254] redirected from r->uri = /others/myproject/public/index.php, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:29 2010] [debug] core.c(3054): [client 95.245.233.254] redirected from r->uri = /others/myproject/public/index.php, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:29 2010] [debug] core.c(3054): [client 95.245.233.254] redirected from r->uri = /others/myproject/public/index.php, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:29 2010] [debug] core.c(3054): [client 95.245.233.254] redirected from r->uri = /others/myproject/public/index.php, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:29 2010] [debug] core.c(3054): [client 95.245.233.254] redirected from r->uri = /domains, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:29 2010] [debug] mod_deflate.c(619): [client 95.245.233.254] Zlib: Compressed 770 to 435 : URL /others/myproject/public/index.php, referer: http://myproject.mysite.com/
[Sun Jun 13 11:47:36 2010] [debug] mod_deflate.c(619): [client 66.249.65.177] Zlib: Compressed 54299 to 10072 : URL /index.php
[Sun Jun 13 11:47:39 2010] [debug] mod_deflate.c(619): [client 66.249.65.146] Zlib: Compressed 0 to 2 : URL /index.php
[Sun Jun 13 11:47:39 2010] [debug] mod_deflate.c(619): [client 66.249.65.146] Zlib: Compressed 20452 to 6144 : URL /index.php/Pagina_principale
[Sun Jun 13 11:47:40 2010] [debug] mod_deflate.c(619): [client 66.249.65.146] Zlib: Compressed 13051 to 3732 : URL /index.php
Reply With Quote
Reply

Bookmarks

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
How Subdomain works (for documentation) moglia Developers' Forum 7 19th June 2010 22:14
website subdomain wildcard support agramajo Tips/Tricks/Mods 2 12th May 2010 02:03
Subdomain and go daddy help djmidknight Installation/Configuration 3 7th April 2010 16:20
Subdomain, another website Thomas Jensen General 3 20th March 2010 23:32
Publishing svn folder to live website.. karnius Server Operation 1 15th January 2009 14:16


All times are GMT +2. The time now is 01:00.


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