Status
Not open for further replies.

UnReaL69

Active Member
174
2009
11
10
Hello,
I'm hosting websites for over 2 years on self managed servers, so I know the basic stuff.
I'm getting a very strange issue, which its like a paranormal activity, its not logic, and really got no idea how to solve or what to find.

I'm using Centos & Apache, and trying to add a Virtual Host.
I'm adding it, its resolving correctly and I have an image hosting script which works correctly on other domains on the same server, using the same directive.
So putting the script to domain 1 work perfect, and putting to domain 2, I get a 404 when trying to upload an image. Same .htaccess !

How could this be possible and any ideas where to look and how to solve it?
 
5 comments
Hi, try:

Code:
<virtualhost *:80>
                ServerAdmin your@email.com
                ServerName yourwebsite.com
                ServerAlias www.yourwebsite.com yourwebsite.com
                DocumentRoot /home/facebookimg.com
                <directory home/facebookimg.com>
                                Options -Indexes
                                AllowOverride All
                </directory>
</virtualhost>
However, you should create a www folder in home / youruser
 
Have no idea what was wrong, but always after some time, fresh start and new ideas, in the end it has to work ;)

Problem solved, thanks #KiRà, I have used your "template" and its working
 
Status
Not open for further replies.
Back
Top