Asghar
Asghar

Reputation: 2346

apache web server hosting issue

i have hosted my website on a folder in my root.

/mywebsitedir/

and defined an alias in my apache conf file.

 # Alias for mywebsite

Alias /myalias/mywebsitedir

<Directory /mywebsitedir>
Order allow,deny
Allow from all
</Directory>

now when i make request on my server.

when i make any request on my server, as my server is hosting many other site.

www.site1.com/myalias

www.site2.com/myalias

www.site3.com/myalias.

i all cases it open my website.

i want to restrict that mywebsite should be only accessible from www.site1.com/myalis .

Thanks

Upvotes: 0

Views: 53

Answers (1)

rightstuff
rightstuff

Reputation: 6522

You need to place the Alias into a VirtualHost for the specific website. Otherwise, it becomes a global alias for all websites.

Upvotes: 1

Related Questions