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

ClearFoundation

Community Community Profile komang muliarsana

About Me

Basic Information

Whereabouts

State / Province
Bali
City / Town
Denpasar
Country
Indonesia

Web Links

Facebook
http://www.facebook.com/home.php#!/muliarsana?ref=profile

Connections

4 connections
  • ridha ramadani
  • Aaron Bylund
  • Andi Micro
  • azmy
komang muliarsana
komang muliarsana
  • Karma
  • Member since
  • Thursday, 04 March 2010 04:03
  • Last online
  • 195 days ago
  • Profile views
  • 1010 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

No group joined by the user yet.