Thread: HTTP 404 in my virtual hosts
hi,
i've been searching if of previous threads work me, i'm stacked. i'm working vps ubuntu server 11.10 ip, let's : 40.40.40.40
have installed apache2 , php5 , mysql. , http://40.40.40.40 "it works!" on browser
pretended start working virtual hosts. in end, when resolve http://40.40.40.40/mydomain.com in browser, 404 :s . i'm telling did step step :
first went /etc/hosts , add line : 40.40.40.40 mydomain.com
then, created new file in /etc/apache2/sites-available named mydomain.com . here can see file mydomain.com contains :
<virtualhost *:80>
servername mydomain.com
documentroot /var/www/virtuals/mydomain.com
<directory /var/www/virtuals/mydomain.com/>
options indexes followsymlinks multiviews
allowoverride all
</directory>
</virtualhost>
folder /etc/apache2/sites-available contains 2 more files : default , default-ssl . did not touch them, promise !
next, run command : a2ensite mydomain.com
, make sure there 2 symlinks in /etc/apache2/sites-enabled folder , 1 called 000-default , other called mydomain.com. both seem point right files in sites-available folder.
mkdir in /var/www/virtuals/mydomain.com , put index.html there containing "hello world".
/etc/init.d/apache2 reload , browser http://40.40.40.40/mydomain.com . know rest (dammed 404).
please, need help, don't know what's happening. ideas?
in advance,
pep
try http://mydomain.com.
according vhost file access using ip of machine need enter following in url.
http://40.40.40.40/virtuals/mydomain.com
code:<virtualhost *:80> servername mydomain.com documentroot /var/www/virtuals/mydomain.com <directory /var/www/virtuals/mydomain.com/> options indexes followsymlinks multiviews allowoverride </directory> </virtualhost>
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] HTTP 404 in my virtual hosts
Ubuntu
Comments
Post a Comment