PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, March 5, 2022

[FIXED] cant get virtualhost to work on ubuntu 11.10 - apache2?

 March 05, 2022     lamp, ubuntu-11.04     No comments   

Issue

can anybody shed some light on this ? I can't seem to be able to get a virtualhost setup to work , I'm new to ubuntu (not convinced yet ?) I have installed a lamp server which is working ok.

I have copied the default from sites-availably named it example, i have created the directory at /var/www/example and put in an index file

I have used a2ensite example and have restarted the server then entered 127.0.0.1/example in the browser but get:

Not Found

The requested URL /example was not found on this server.

Apache/2.2.20 (Ubuntu) Server at 127.0.0.1 Port 80

this is what i have in example:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName example
DocumentRoot /var/www/example 
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/example/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

<VirtualHost>

Can anybody help thanks


Solution

http://mintarticles.com/read/software-articles/multiple-virtual-hosts-in-xampplampp-in-ubuntu,977/

follow it .. will work for sure .. ;)



Answered By - Ashish Saxena
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing