Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony newbie: can't get right VirtualHosts in Apache
    primarykey
    data
    text
    <p>starting developing with symfony and the only issue I face so far is the right web server set up. I'm not very familiar with Apache configs. I'm using a Plesk VPS with:</p> <ul> <li>CentOS 5.5</li> <li>Apache/2.2.3</li> <li>Symfony 1.4.17 (non-sanbox)</li> </ul> <p>I have set up a subdomain sf.mydomain.com, where web-accessable path on the server is:</p> <pre><code>/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/ </code></pre> <p>The symfony project is here:</p> <pre><code>/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/ </code></pre> <p>Symfony installation files are here:</p> <pre><code>/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/lib/vendor/symfony/data/web/sf/ </code></pre> <p>I know it's not recommended to have your installation under httpdocs, but I'm just testing it. In my httpd.conf I've added these entries:</p> <pre><code>NameVirtualHost *:80 &lt;VirtualHost *:80&gt; ServerName sf.mydomain.com DocumentRoot "/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/web" DirectoryIndex index.php &lt;Directory "/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/web"&gt; AllowOverride All Allow from All &lt;/Directory&gt; Alias /sf /var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/lib/vendor/symfony/data/web/sf &lt;Directory "/var/www/vhosts/mydomain.com/subdomains/sf/httpdocs/jobeet/lib/vendor/symfony/data/web/sf"&gt; AllowOverride All Allow from All &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>My intention is to have a pretty welcoming screen at mydomain.com/jobeet/web, however now it doesn't display images and if also fails to route through /jobeet/web/sf/sf_default/css/screen.css. I know I can copy the "lib/vendor/symfony/data/web/sf/" over to "/web", but I want to know what am I doing wrong in here? Any tips would be highly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload