Originally Posted by
robb.innes
Thank you for the links, I worked through the translated German article, and I was able to follow it. I did not have any luck getting it to work though. I had followed the same basic steps before. With an older version of contao and our old site, this method worked for me. Now it is not
Huh, seems to be a little bit tricky I have to say that I have never done this before. Like I said, I always set the domain routing setup in the domain configuration.
Originally Posted by
robb.innes
With symlinks, am I able to direct to a subfolder within a domain? I have set up symlinks across domains before, but I thought creating a it replaces the directory with the link. I am a bit worried to do this and wipe everything. Not that I wouldn't back my files up, I have, but I still want to be careful. Would I create a symlink with code like this in the root folder of my domain:
ln -s /home/00000/domains/example.com/html/sub html
were "sub" would be "core-master"
Frankly, I do not know how Media Temple handles the symbolic links. My web hosting service provider lets me create a symlink (in the document root) that is pointing wherever I want. That way, I am able to create some kind of a pseudo document root.
For instance, given the document root in "/var/www/virtual/foo/" and the respective Contao installation in the subfolder "/var/www/virtual/foo/html/core-master" I'd do as follows:
Code:
$ cd /var/www/virtual/foo/
$ ln -s html/core-master/ example.com
Symbolic link:
Code:
example.com -> html/core-master/
So, by opening the domain "example.com" in a web browser I can route all requests straight to the specified directory.
For this to work, there must be of course a proper rewrite rule in the virtualhost configuration :
Code:
# If there is a host-specific pseudo-DocumentRoot, use it instead of the default one
RewriteCond %{REQUEST_URI} !^/f?cgi-bin/
RewriteCond /var/www/virtual/foo/%{HTTP_HOST} -d
RewriteRule (.*) /var/www/virtual/foo/%{HTTP_HOST}$1
But if you are unsure about this, you better should consider asking your provider on that matter.
Bookmarks