1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

About Me

Basic Information

About me
i have learn more about ClearOS

Whereabouts

State / Province
Sumatera Barat
City / Town
Padang
Country
Indonesia

Web Links

Connections

24 connections
  • harry chan putra
  • dwi chandra
  • Kevin Dika
  • John Terpstra
  • Fadjar Tandabawana
  • Haryanto
  • blegedes
  • Dave Loper
  • Isal Faisal
  • Jim Robinson
  • Kheri Arionadi S
  • Tim Burgess
tosika
tosika
  • Karma
  • Member since
  • Thursday, 17 June 2010 04:30
  • Last online
  • 927 days ago
  • Profile views
  • 1029 views
2 weeks ago
Andi Micro replied to the topic Re: Virtual host Problem in the forums.
Tim,

This is my flex-80
Code:


[root@smpn1-bjb ~]# vi /etc/httpd/conf.d/flex-80.conf
#----------------------------------------------------------------
# WARNING: This file is automatically created by webconfig.
#----------------------------------------------------------------

# Authentication mechanism
DefineExternalAuth pwauth pipe /usr/bin/pwauth
DefineExternalGroup pwauth pipe /usr/bin/unixgroup

ScriptAlias /flexshare/elearning/cgi-bin/ /var/flexshare/shares/elearning/cgi-bin/
Alias /flexshare/elearning /var/flexshare/shares/elearning

<VirtualHost *:80>
__FBTAB__ServerName elearning.smpn1-bjb.sch.id
__FBTAB__DocumentRoot /var/flexshare/shares/elearning
__FBTAB__ScriptAlias /cgi-bin/ /var/flexshare/shares/elearning/cgi-bin/
__FBTAB__ErrorLog /var/log/httpd/smpn1-bjb.sch.id_error_log
__FBTAB__CustomLog /var/log/httpd/smpn1-bjb.sch.id_access_log common
</VirtualHost>

<Directory /var/flexshare/shares/elearning/cgi-bin>
__FBTAB__Options +ExecCGI
</Directory>

<Directory /var/flexshare/shares/elearning>
__FBTAB__Options -Indexes -FollowSymLinks -IncludesNOExec
__FBTAB__AllowOverride All
__FBTAB__Order deny,allow
__FBTAB__Allow from all
__FBTAB__AddType text/html .php
__FBTAB__AddHandler php5-script .php
</Directory>
ScriptAlias /flexshare/eschool/cgi-bin/ /var/flexshare/shares/eschool/cgi-bin/
Alias /flexshare/eschool /var/flexshare/shares/eschool

<VirtualHost *:80>
__FBTAB__ServerName eschool.smpn1-bjb.sch.id
__FBTAB__DocumentRoot /var/flexshare/shares/eschool
__FBTAB__ScriptAlias /cgi-bin/ /var/flexshare/shares/eschool/cgi-bin/
__FBTAB__ErrorLog /var/log/httpd/smpn1-bjb.sch.id_error_log
__FBTAB__CustomLog /var/log/httpd/smpn1-bjb.sch.id_access_log common
</VirtualHost>

<Directory /var/flexshare/shares/eschool/cgi-bin>
__FBTAB__Options +ExecCGI
</Directory>

<Directory /var/flexshare/shares/eschool>
__FBTAB__Options -Indexes -FollowSymLinks -IncludesNOExec
__FBTAB__AllowOverride All
__FBTAB__Order deny,allow
__FBTAB__Allow from all
__FBTAB__AddType text/html .php
__FBTAB__AddHandler php5-script .php
</Directory>
ScriptAlias /flexshare/sisfokol/cgi-bin/ /var/flexshare/shares/sisfokol/cgi-bin/
Alias /flexshare/sisfokol /var/flexshare/shares/sisfokol

<VirtualHost *:80>
__FBTAB__ServerName sisfokol.smpn1-bjb.sch.id
__FBTAB__DocumentRoot /var/flexshare/shares/sisfokol
__FBTAB__ScriptAlias /cgi-bin/ /var/flexshare/shares/sisfokol/cgi-bin/
__FBTAB__ErrorLog /var/log/httpd/smpn1-bjb.sch.id_error_log
__FBTAB__CustomLog /var/log/httpd/smpn1-bjb.sch.id_access_log common
</VirtualHost>

<Directory /var/flexshare/shares/sisfokol/cgi-bin>
__FBTAB__Options +ExecCGI
</Directory>

<Directory /var/flexshare/shares/sisfokol>
__FBTAB__Options +Indexes -FollowSymLinks -IncludesNOExec
__FBTAB__AllowOverride All
__FBTAB__Order deny,allow
__FBTAB__Allow from all
__FBTAB__AddType text/html .php
__FBTAB__AddHandler php5-script .php
</Directory>




And for DNS server, i just fill hostname with smpn1-bjb.sch.id and server ip address.


May 05
Andi Micro created a new topic Virtual host Problem in the forums.
I use flexshare to create multiple virtual hosts as in the picture below.



For eschool and elearning, there is no problem, and can be accessed at elearning.smpn1-bjb.sch.id and eschool.smpn1-bjb.sch.id , but for sisfokol and other newly created flexshare, cannot be accessed via subdomains (sisfokol.smpn1-bjbs.sch.id), but i can access it with URL : smpn1-bjb.sch.id/flexshare/sisfokol

Is there a solution to this problem?
May 04

Wall

No wall post to show

My Forum Updates

Groups

Here is a short listing of the groups that the user has registered in.