Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

$50 if you sort out my silly apache problem!

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  VirtualHost problem  
Author Message
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 1) Posted: Fri Oct 12, 2007 6:56 am
Post subject: $50 if you sort out my silly apache problem!
Archived from groups: alt>apache>configuration (more info?)

I am kind of in a rush and have wasted hours looking on google how to
do this so will happily pay $50 to somone instead. I reckon for
someone who knows what they are doing its very easy job... This offer
expires in two hours when I leave to go home. It's boring at work and
I have remote desktop into my home network setup to get this working
for the weekend.

I want to set up two directories, and route all requests to
mydomain.com to one directory, and all requests to myotherdomain.com
to another. thats all!

Currently I have apache running but all the requests goto the same
place.

Here is my exact current apache.conf file that I have to edit:

(Note the platfrom in a qnap TS-109 NAS. I have winSCP and putty all
setup so I can change the config file etc. Just need to know what to
do).



#ServerType standalone
ServerRoot "/usr/local/apache"
#LockFile /usr/local/apache/logs/apache.lock
PidFile /usr/local/apache/logs/apache.pid
ScoreBoardFile /usr/local/apache/logs/apache.scoreboard
#ResourceConfig /usr/local/apache/conf/srm.conf
#AccessConfig /usr/local/apache/conf/access.conf
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
#Listen 3000
#Listen 12.34.56.78:80
#BindAddress *
LoadModule php5_module libexec/libphp5.so
Port 80
User guest
Group guest
ServerAdmin ken@NasARM
#ServerName www.example.com
DocumentRoot "/share/Qweb"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/share/Qweb">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php
</IfModule>

AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

UseCanonicalName On

<IfModule mod_mime.c>
TypesConfig /usr/local/apache/conf/mime.types
</IfModule>

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/local/apache/conf/magic
</IfModule>

HostnameLookups Off
ErrorLog /usr/local/apache/logs/apache_error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /usr/local/apache/logs/apache_access_log common
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The
format is
# Alias fakename realname
#
<IfModule mod_alias.c>
Alias /Qmultimedia/ "/home/httpd/Qmultimedia/"
Alias /v3_menu/ "/home/httpd/v3_menu/"
ScriptAlias /cgi-bin/Qmultimedia/ "/home/httpd/cgi-bin/Qmultimedia/"
ScriptAlias /Qmultimedia/cgi-bin/ "/home/httpd/Qmultimedia/cgi-bin/"
<Directory "/home/httpd/Qmultimedia">
Options MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/v3_menu">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/Qmultimedia/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
<Directory "/home/httpd/cgi-bin/Qmultimedia/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_autoindex.c>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

#
# Document types.
#
<IfModule mod_mime.c>
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru
ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler send-as-is asis
AddHandler imap-file map
AddHandler type-map var

</IfModule>

<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-
response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>

 >> Stay informed about: $50 if you sort out my silly apache problem! 
Back to top
Login to vote
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 2) Posted: Fri Oct 12, 2007 7:31 am
Post subject: Re: $50 if you sort out my silly apache problem! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I tried adding:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/share/Qweb/whooper"
ServerName any_thing_else.com
</VirtualHost>

<VirtualHost *>
DocumentRoot "/share/Qweb/"
ServerName willyhoops.com
</VirtualHost>

to the end but no luck. it just ignores this

 >> Stay informed about: $50 if you sort out my silly apache problem! 
Back to top
Login to vote
william.hooper

External


Since: Oct 12, 2007
Posts: 1



(Msg. 3) Posted: Fri Oct 12, 2007 12:50 pm
Post subject: Re: $50 if you sort out my silly apache problem! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I will try adding this to the bottom of the file:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/share/Qweb/site1"
ServerName site1.local
</VirtualHost>

<VirtualHost *>
DocumentRoot "/share/Qweb/site2"
ServerName site2.local
</VirtualHost>
 >> Stay informed about: $50 if you sort out my silly apache problem! 
Back to top
Login to vote
william.hooper

External


Since: Oct 12, 2007
Posts: 18



(Msg. 4) Posted: Sat Oct 13, 2007 8:48 am
Post subject: Re: $50 if you sort out my silly apache problem! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I really wish there were people who would just tell you exactly what
to do for $50 and save us all a lifetime of hell.

anyway i finnaly sorted out my problem with the qnap TS-109 NAS
hosting multiple domains / web sites. my idiots guide / virtual hosts
for dummies / tutorial for people who own a qnap and don't want to
spend days playing with the darn thing is here:

http://forum.qnap.com/phpbb2/viewtopic.php?t=527&postdays=0&postorder=...&start=
 >> Stay informed about: $50 if you sort out my silly apache problem! 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
silly RewriteRule problem - hi ng, i'm very desperate about the following prob. two simple rules of for my site: RewriteRule news_([0-9]+)\.html$ news.html?nid=$1 [QSA,N] RewriteRule ([a-zA-Z0-9_]+)\.html$ index.php?id=$1 [QSA,L] rule 2 goes its way, but the first one 's my..

A silly question.... - off_topic, I know.... sorry. I've been reading Apache/Linux/PHP/ docs all day now, and I've learned a lot. But one thing has me puzzled more than any of the technical issues: What do the words 'foo' and 'bar' mean and why are they used EVERYWHERE..

Index Sort Directories by Number/Value? - We currently use Apache to display a listing of Directories. Every directory represents a part number. ie: 10488 The problem is that directory number 1084 comes after directory number 10488 (as an example). Apache is doing the logical thing of..

Autoindex (sort by type) (newbie) - How do I make Apache 2.0 (Win32) sort a my indexes by "Type"? Currently Apache AutoIndexes by name... how do I make it sort by "type", so that the folders are placed at the top of the autoindexes? I Apache 2.0 can't do this.. where ...

Apache (1.3 AND 2.0) Problem - Hi there! I have some kind of odd problem: I installed Apache 2 some hours ago und configured PHP 4.3.9. In the first place, everything seems to be working fine. But after trying to use images in html files, or load bigger files (even htm and css) the....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]