Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache wont open our site correctly !!

Status
Not open for further replies.

Norselord

Technical User
Aug 14, 2003
4
NO
We configured Apache, but when I type " it doesn't bring up the webpage. However, if I type " the page comes popping up.

Using Virtual Host on two different sites, same IP, same server. All is good when we type the correct adress incl. index.html.

Any tips to solve this problem would be grately appricated :)
 
Thanks Sleipnir214

However we are still a little uncertain here.
( Using apache 2.0)
Where shall this centence be put in the config-file? In the vitrtual host or the global settings?
Here`s a little "paste" from our server;
#VirtualServer 10.10.10.5
#<VirtualHost 10.10.10.5>
# ServerAdmin webmaster@3net.no
# DocumentRoot /# ServerName # ErrorLog var/logs/3net_log
# CustomLog var/logs/3net_log common
#</VirtualHost>

What did we miss here?
Thanks for any help :)
 
Apache's configuration is heirarchical.

If you look at the page for the configuration directive, you will see a heading of &quot;Context:&quot;. For DirectoryIndex, the Context is &quot;server config, virtual host, directory, .htaccess&quot;.

&quot;Server config&quot; tells you you can put this directive in the httpd.conf file, outside any other directives. This will make it apply to the entire server.

&quot;virtual host&quot; tells you you can put this directive in httpd.conf, inside a &quot;VirtualHost&quot; directive. This will make it apply to a particular virtual host.

&quot;directory&quot; tells you you can put this directive in httpd.conf, inside a &quot;Directory&quot; directive. This will apply the default to a particular directory and its subdirectories.

&quot;.htaccess&quot; means you can configure a default outside of httpd.conf, in a per-directory .htaccess file.

At what level do you want the default document to apply?

Want the best answers? Ask the best questions: TANSTAAFL!!
 
We must be stupid....we still dont understand.
Do you have an example for Virtual host and Server config?
It looks like it should be possible to just give the settings in server config, but this doesnt work so....

Owe you a big bucket of beer if you can make us understand this one :)
 
Well, lets see here now...;
we had the apache up and going. ( Without the correct reply when we try to access the different web-sites on the server ...
NameVirtualHost 10.10.10.5

<VirtualHost 10.10.10.5>

ServerName DocumentRoot /
</VirtualHost>

How now to get the browser to respond to 3net.no? When we try, it doesnt work, unless we type the whole path Quite simple, but we just dont get it...
 
I'd change this:

Code:
NameVirtualHost 10.10.10.5

<VirtualHost 10.10.10.5>

ServerName [URL unfurl="true"]www.3net.no[/URL]
DocumentRoot /[URL unfurl="true"]www/html/3net[/URL]

</VirtualHost>

to read:

Code:
NameVirtualHost 10.10.10.5

<VirtualHost 10.10.10.5>

ServerName [URL unfurl="true"]www.3net.no[/URL]
DocumentRoot /[URL unfurl="true"]www/html/3net[/URL]
DirectoryIndex index.html
</VirtualHost>

Keep in mind that this will not work unless the mod_dir module is installed.



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top