Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th April 2012, 14:02
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default Wrong Creation of the WebHost using the API

Hi guys,

I have executed our API to create a new website but we have seen that the .vhost file created has a problem:

Code:
webserver: # apachectl configtestSyntax error on line 7 of /etc/apache2/sites-enabled/100-domain.com.vhost:
The address or port is invalid
Action 'configtest' failed.
The Apache error log may have more information.
When I open the 100-domain.com.vhost file I can see the problem.

WRONG

Code:
<Directory /var/www/domain.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost :80>
.
.
.
.
</VirtualHost>
CORRECT

Code:
<Directory /var/www/domain.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
.
.
.
.
</VirtualHost>
This is the method that creates the website. Where is the problem?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 30th April 2012, 16:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,975
Thanks: 825
Thanked 5,368 Times in 4,215 Posts
 
Default

You answered your questions yourself, the IP address in the vhost is empty instead of showing * and the resaon for that is that you pased a empty IP address field instead of * to the web add function.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
vaio1 (4th May 2012)
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
API: Mysql Update problem branov Developers' Forum 15 6th March 2012 13:33
Folder Protection API snowfly General 4 9th January 2012 08:15
ISPConfig3 + API + BoxBilling class450dude Installation/Configuration 3 22nd August 2011 22:32
Installation Troubles bswinnerton Installation/Configuration 4 29th July 2007 16:56
after web-form edit, site creation from hostingplan gives wrong values raveneye Installation/Configuration 2 7th November 2005 00:51


All times are GMT +2. The time now is 15:47.


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