Jump to content

Recommended Posts

ive got a apache server running along side a file maker pro server 9, which doesnt really matter.

anyways the machine running them is also a hosting computer. I can get to the server via http:// IP

so apache serve is up i can see the Apache standard page "This not what you expected to see?" or what not.  Ive been trying to edit the httpd.conf file for virtual hosting and i am getting no where. I work for a small business and this isnt really my area but they want me to do this. Ive read through the apache documentation but im just getting no where. I am sorry im so novice but help would be greatly appreciated

 

    NameVirtualHost *

    <VirtualHost *>
    ServerName www.domain.tld   < ---( i get that this[/b]  
    DocumentRoot /www/domain  <-- (get this what folder to look to for files; but where does the root begin? i know www folder is what most people name there hosted sites folder but what is before www folder? where the localhost begins?
    </VirtualHost>

    <VirtualHost *>
    ServerName www.otherdomain.tld
    DocumentRoot /www/otherdomain
    </VirtualHost>

Link to comment
https://forums.phpfreaks.com/topic/85052-apache-virtual-hosting/
Share on other sites

this is what used to work for me when I had a server up an running.. its for apache 2.0, not sure which your running.. but yea here goes.. edit as needed.. and as you see fit

 

<VirtualHost 192.168.1.100> 
    ServerAdmin monkeytooth@gmail.com 
    DocumentRoot htdocs/www/personal/monkeytooth.net
    ServerName www.monkeytooth.net
    ServerAlias monkeytooth.net
    DirectoryIndex index.htm index.html index.php index.shtml index.asp index.cgi index.php3
    ErrorLog D:/apache2triad/logs/monkeytooth.net-error.log 
    CustomLog D:/apache2triad/logs/monkeytooth.net-access.log combined 

AddType text/html .shtml
AddHandler server-parsed .shtml
<IfModule mod_php4.c>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
AddHandler cgi-script .cgi
ScriptAlias /cgi-bin	"htdocs/www/personal/monkeytooth.net"

<DIRECTORY htdocs/www/personal/monkeytooth.net>
OPTIONS  Indexes Includes ExecCGI FollowSymLinks
AllowOverride All
</DIRECTORY>
IndexOptions FancyIndexing
</VirtualHost>

 

This may be a bit overt-kill.. but none the less

Also shouldn't fail to mention that.. if you read through the conf as your editing it, its pretty well commented about what it the next choice to edit does and what effect it will have on your server.. when your done editing, always remember to "Restart" apache.. changes don't take effect until apache restarts..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.