GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Dec-2005, 00:31
albert85 albert85 is offline
New Member
 
Join Date: Dec 2005
Posts: 6
albert85 is on a distinguished road

apache server configuration problem


i already built up the Apache web server.
i want to know if i develop a webpage where i should save the webpage make the server to retrieve??? (like the iis server put inside the root file)
another thing is let say http://www.gidforums.com/forums/index.html is the page URL direct point to the page. if i just type http://www.gidforums.com/forums without typing the whole url and will go to the page that i want, how i configure it inside the Apache server.

for those who know to configure it PLEASE HELP ME to solve this problem
thank you.



regards,
albert
  #2  
Old 03-Jan-2006, 07:03
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: apache server configuration problem


Your first question: you can save your files anywhere, as long as you tell Apache where it can be found on your system.

For example, when I develop my sites on my PC, a windows xp machine, I save it to a folder that mimicks the path on my remote web server.

Code:
c:\home\username1\domains\gidnetwork.com\public_html\ c:\home\username2\domains\gidforums.com\public_html\ ...etc

and in my PC's version of the httpd.conf file, I put the following in place under the virtual host bit:

Code:
NameVirtualHost *:80 # GIDNETWORK.COM <VirtualHost *:80> RewriteEngine on RewriteCond %{HTTP_HOST} ^gidnetwork\.com RewriteRule ^(.*)$ http://www.gidnetwork.com$1 [R=301,L] php_value include_path ".;/home/username1/domains/gidnetwork.com/includes" ServerAdmin giddomains@gmail.com DocumentRoot /home/username1/domains/gidnetwork.com/public_html ServerName www.gidnetwork.com ErrorLog logs/www.gidnetwork.com-error_log CustomLog logs/www.gidnetwork.com-access_log combined </VirtualHost> # GIDFORUMS.COM <VirtualHost *:80> RewriteEngine on RewriteCond %{HTTP_HOST} ^gidforums\.com RewriteRule ^(.*)$ http://www.gidforums.com$1 [R=301,L] php_value include_path ".;/home/username1/domains/gidnetwork.com/includes" ServerAdmin giddomains@gmail.com ServerName www.gidforums.com DocumentRoot /home/username2/domains/gidforums.com/public_html ErrorLog logs/www.gidforums.com-error_log CustomLog logs/www.gidforums.com-access_log combined </VirtualHost>
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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
Apache / PHP problem, maybe output length? HaganeNoKokoro Apache Web Server Forum 3 07-Aug-2008 05:42
Microsoft SQL Server :: SQL Server message 241, state 1, severity 16 lyuboe MySQL / PHP Forum 0 11-May-2005 05:31
Apache WAP service problem bigg_o Apache Web Server Forum 1 24-Mar-2005 05:10
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:38.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.